JsonSensitivityAnalysisParameters { public static SensitivityAnalysisParameters read(Path jsonFile) { return update(new SensitivityAnalysisParameters(), jsonFile); } private  JsonSensitivityAnalysisParameters(); static ExtensionProviders<ExtensionSerializer> getExtensionSerializers(); static SensitivityAnalysisParameters read(Path jsonFile); static SensitivityAnalysisParameters read(InputStream jsonStream); static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile); static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, InputStream jsonStream); static void write(SensitivityAnalysisParameters parameters, Path jsonFile); static void write(SensitivityAnalysisParameters parameters, OutputStream outputStream); static SensitivityAnalysisParameters deserialize(JsonParser parser, DeserializationContext context, SensitivityAnalysisParameters parameters); static SensitivityAnalysisParameters deserialize(JsonParser parser, DeserializationContext context); static void serialize(SensitivityAnalysisParameters parameters, JsonGenerator jsonGenerator, SerializerProvider serializerProvider);  }
@Test public void readExtension() { SensitivityAnalysisParameters parameters = JsonSensitivityAnalysisParameters.read(getClass().getResourceAsStream("/SensitivityAnalysisParametersWithExtension.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: unexpected"); JsonSensitivityAnalysisParameters.read(getClass().getResourceAsStream("/SensitivityAnalysisParametersInvalid.json")); }