@Test public void checkMockIsUsed() throws IOException { when(messager.message()).thenReturn("mockito"); final String message = IO.slurp(new URL("http: assertEquals("mockito", message); }
@GET public String message() { return messager.message(); }
GreetingService { @GET public String message() { return messager.message(); } }
GreetingService { @GET public String message() { return messager.message(); }  }
GreetingService { @GET public String message() { return messager.message(); }  @GET String message(); }
GreetingService { @GET public String message() { return messager.message(); }  @GET String message();  }