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