SortinoRatioCalculator { public double calculate(final double assetReturn, final double benchmarkReturn, final double downsideVolatility) { return (assetReturn - benchmarkReturn) / downsideVolatility; }  double calculate(final double assetReturn, final double benchmarkReturn, final double downsideVolatility);  }
@Test public void test() { final double assetReturn = 0.15; final double benchmarkReturn = 0.12; final double standardDeviation = 0.30; assertEquals(new SortinoRatioCalculator().calculate(assetReturn, benchmarkReturn, standardDeviation), SHARPE.evaluate(ASSET_RETURN, RISK_FREE), 0); }