EulaWebService { @Path(CURRENT_EULA) @GET public Eula current() { try { return new Eula(Resources.toString(Resources.getResource(EulaWebService.class, "model/eula.html"), StandardCharsets.UTF_8)); } catch (IOException e) { throw Throwables.propagate(e); } } @Inject  EulaWebService(SettingsService settingsService); @Path(CURRENT_EULA) @GET Eula current(); @Path(CURRENT) @GET UserEulaStatus currentUserEulaStatus(); @Path(CURRENT) @PUT void currentUserEulaStatus(UserEulaStatus newStatus);  }
@Test public void current() { Eula eula = service.current(); assertNotNull(eula); assertFalse(Strings.isNullOrEmpty(eula.getText())); assertTrue(eula.getText().contains("Apache License")); }