@Test
public void testPrivilegeFromName() throws Exception {

    AccessControlManager delegate = mock(AccessControlManager.class);
    AccessControlManagerFacade<AccessControlManager> facade = getFacade(delegate);
    final Privilege value = mock(Privilege.class);
    final String name = "name";
    when(delegate.privilegeFromName(name)).thenReturn(value);
    assertSame("is same value", value, facade.privilegeFromName(name));
}