@Test
  public void testRemovePoints() {
    p.doSomething();
    p.doRemoveSomething();

    Achievement ach = gs.getAchievement("Spider", "GOLD");
    assertEquals(new Integer(500), ((Point) ach).getQuantity());
  }
 @Test
 public void testInvocationWithExceptionToRemove() {
   p.doSomething();
   try {
     p.doRemoveWrong();
     fail();
   } catch (Exception e) {
     Achievement ach = gs.getAchievement("Spider", "GOLD");
     assertEquals(new Integer(1000), ((Point) ach).getQuantity());
   }
 }
 @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());
 }