MarketRiskAdjustedPerformanceCalculator { public double calculate(final double assetReturn, final double riskFreeReturn, final double beta) { return assetReturn + (1. / beta - 1) * (assetReturn - riskFreeReturn); }  double calculate(final double assetReturn, final double riskFreeReturn, final double beta);  }
@Test public void test() { final double assetReturn = 0.12; final double riskFreeReturn = 0.03; final double beta = 0.7; assertEquals(new MarketRiskAdjustedPerformanceCalculator().calculate(assetReturn, riskFreeReturn, beta), 0.1586, 1e-4); }