@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")); }
@GET public String helloWorld() { return this.helloWorld.helloWorld(); }
HelloWorldRest { @GET public String helloWorld() { return this.helloWorld.helloWorld(); } }
HelloWorldRest { @GET public String helloWorld() { return this.helloWorld.helloWorld(); }  }
HelloWorldRest { @GET public String helloWorld() { return this.helloWorld.helloWorld(); }  @GET String helloWorld(); }
HelloWorldRest { @GET public String helloWorld() { return this.helloWorld.helloWorld(); }  @GET String helloWorld();  }