@Test
public void testAuthorize() {

	RangerBasePlugin plugin = new RangerBasePlugin("hbase", "hbase");
	
	User user = mock(User.class);
	when(user.getShortName()).thenReturn("user1");
	when(user.getGroupNames()).thenReturn(new String[] { "users" } );
	AuthorizationSession session = new AuthorizationSession(plugin);
	session.access("read")
		.user(user)
		.table(":meta:")
		.buildRequest()
		.authorize();
}