@Test public void addPointsToParamProperty() { p.niceComment(new Comment(new FakeUser("Thor"), "OK! Thank you!")); Achievement ach = gs.getAchievement("Thor", "SILVER"); assertEquals(new Integer(300), ((Point) ach).getQuantity()); }