// // PRIVATE METHODS // private void assertPolicyReccomends(CellWorld cw, MDPUtilityFunction<CellWorldPosition> uf, int x, int y, String actionExpected) { Pair<String, Double> p = cw.getTransitionModel() .getTransitionWithMaximumExpectedUtility( new CellWorldPosition(x, y), uf); Assert.assertEquals(actionExpected, p.getFirst()); }