### Question:
HelloWorldRest { @GET public String helloWorld() { return this.helloWorld.helloWorld(); }  @GET String helloWorld();  }### Answer:
@Test public void test() { HelloWorldService mockService = this.testFramework.mockService(HelloWorldService.class); Mockito.when(mockService.helloWorld()).thenReturn("hello100"); String responseMsg = this.target.request().get(String.class); assertThat(responseMsg, equalTo("hello100")); }