JsonDynamicSimulationParameters { public static DynamicSimulationParameters read(Path jsonFile) { return update(new DynamicSimulationParameters(), jsonFile); } private  JsonDynamicSimulationParameters(); static ExtensionProviders<ExtensionSerializer> getExtensionSerializers(); static DynamicSimulationParameters read(Path jsonFile); static DynamicSimulationParameters read(InputStream jsonStream); static DynamicSimulationParameters update(DynamicSimulationParameters parameters, Path jsonFile); static DynamicSimulationParameters update(DynamicSimulationParameters parameters, InputStream jsonStream); static void write(DynamicSimulationParameters parameters, Path jsonFile); static void write(DynamicSimulationParameters parameters, OutputStream outputStream); static DynamicSimulationParameters deserialize(JsonParser parser, DeserializationContext context, DynamicSimulationParameters parameters); static DynamicSimulationParameters deserialize(JsonParser parser, DeserializationContext context); static void serialize(DynamicSimulationParameters parameters, JsonGenerator jsonGenerator, SerializerProvider serializerProvider);  }
@Test public void readExtension() { DynamicSimulationParameters parameters = JsonDynamicSimulationParameters.read(getClass().getResourceAsStream("/DynamicSimulationParametersWithExtension.json")); assertEquals(1, parameters.getExtensions().size()); assertNotNull(parameters.getExtension(DummyExtension.class)); assertNotNull(parameters.getExtensionByName("dummy-extension")); }
@Test public void readError() { expected.expect(AssertionError.class); expected.expectMessage("Unexpected field: unknownParameter"); JsonDynamicSimulationParameters.read(getClass().getResourceAsStream("/DynamicSimulationParametersError.json")); }