SensitivityFactor { public F getFunction() { return sensitivityFunction; } @JsonCreator protected  SensitivityFactor(@JsonProperty("function") F sensitivityFunction,
                                @JsonProperty("variable") V sensitivityVariable); F getFunction(); V getVariable();  }
@Test public void getFunction() { SensitivityFunction function = Mockito.mock(SensitivityFunction.class); SensitivityFactor factor = new SensitivityFactor(function, Mockito.mock(SensitivityVariable.class)); assertSame(function, factor.getFunction()); }