### Question:
PrivilegePolicyStore implements PolicyStore { @Override public Privilege update(String existingName, Privilege policy) throws EntitlementException { privilegeManager.modify(existingName, policy); return policy; } PrivilegePolicyStore(final PrivilegeManager privilegeManager, Map<String, QueryAttribute> queryAttributes); @Override Privilege read(String policyName); @Override Privilege create(Privilege policy); @Override Privilege update(String existingName, Privilege policy); @Override void delete(String policyName); @Override List<Privilege> query(QueryRequest request);  }### Answer:
@Test public void shouldDelegateUpdatesToPrivilegeManager() throws Exception { String name = "test"; Privilege policy = new StubPrivilege(); Privilege response = testStore.update(name, policy); verify(mockManager).modify(name, policy); assertThat(response).isSameAs(policy); }