@Test
public void testAuthorizationSuccess() throws AuthorizationException {

  proxyUser = "fakeuser";
  user = "dummyUser";
  when(realUserUGI.getShortUserName()).thenReturn(proxyUser);
  when(userGroupInformation.getRealUser()).thenReturn(realUserUGI);
  provider.authorize(userGroupInformation, "2.2.2.2");
  user = "somerandomuser";
  proxyUser = "test.user";
  when(realUserUGI.getShortUserName()).thenReturn(proxyUser);
  when(userGroupInformation.getRealUser()).thenReturn(realUserUGI);
  provider.authorize(userGroupInformation, "2.2.2.2");
}