### Question:
RpService { public boolean remove(String oxdId) { boolean ok = persistenceService.remove(oxdId); if (ok) { rpCache.invalidate(oxdId); } return ok; } @Inject  RpService(ValidationService validationService, PersistenceService persistenceService, ConfigurationService configurationService); void removeAllRps(); void load(); Rp getRp(String oxdId); Map<String, Rp> getRps(); void update(Rp rp); void updateSilently(Rp rp); void create(Rp rp); boolean remove(String oxdId); Rp getRpByClientId(String clientId);  }### Answer:
@Test public void remove() throws Exception { Rp rp = newRp(); service.create(rp); assertNotNull(persistenceService.getRp(rp.getOxdId())); rp.setClientName("Updated name"); service.update(rp); assertEquals(persistenceService.getRp(rp.getOxdId()).getClientName(), "Updated name"); assertEquals(persistenceService.getRp(rp.getOxdId()).getClientName(), "Updated name"); service.remove(rp.getOxdId()); try { rp = persistenceService.getRp(rp.getOxdId()); validationService.validate(rp); throw new AssertionError("RP is not removed."); } catch (HttpException e) { assertEquals(e.getCode(), ErrorResponseCode.INVALID_OXD_ID); } }