### Question:
AuthorizableWrapperImpl implements AuthorizableWrapper { @Override public Authorizable getAuthorizable() { return authorizable; } AuthorizableWrapperImpl(ResourceResolver resolver);  AuthorizableWrapperImpl(Resource resource); @Override Authorizable getAuthorizable(); @Override Iterator<Authorizable> getDeclaredMembers(); @Override Iterator<Group> getDeclaredMembership(); @Override Iterator<String> getGroupNames(); @Override String getId(); @Override Iterator<Authorizable> getMembers(); @Override Iterator<Group> getMembership(); @Override boolean isAdministrator(); @Override boolean isMember(String groupName);  }### Answer:
@Test public void testResourceResolver() throws AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException { AuthorizableWrapper authWrapper = new AuthorizableWrapperImpl(userResource.getResourceResolver()); assertNotNull(authWrapper.getAuthorizable()); assertEquals(user, authWrapper.getAuthorizable()); }
@Test public void testGetAuthorizable() throws AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException { AuthorizableWrapper authWrapper = new AuthorizableWrapperImpl(userResource); assertNotNull(authWrapper); assertEquals(user, authWrapper.getAuthorizable()); authWrapper = new AuthorizableWrapperImpl(groupResource); assertNotNull(authWrapper); assertEquals(group, authWrapper.getAuthorizable()); try { authWrapper = new AuthorizableWrapperImpl(contentResource); fail(); } catch (RepositoryException re) { } }