TTwoPerformanceCalculator { public double calculate(final double assetReturn, final double riskFreeReturn, final double marketReturn, final double beta) { return MRAP.calculate(assetReturn, riskFreeReturn, beta) - marketReturn; }  double calculate(final double assetReturn, final double riskFreeReturn, final double marketReturn, final double beta);  }
@Test public void test() { final double assetReturn = 0.12; final double riskFreeReturn = 0.03; final double marketReturn = 0.11; final double beta = 0.7; assertEquals(new TTwoPerformanceCalculator().calculate(assetReturn, riskFreeReturn, marketReturn, beta), 0.0486, 1e-4); }