@Test
public void test61getServiceWillOnlyReturnNameIdAndTypeForRoleUser() throws Exception {

	RangerService actualService = rangerService();
	
	String userLoginID = "testuser";
	Long userId = 8L;
	
	RangerSecurityContext context = new RangerSecurityContext();
	context.setUserSession(new UserSessionBase());
	RangerContextHolder.setSecurityContext(context);
	UserSessionBase currentUserSession = ContextUtil.getCurrentUserSession();
	currentUserSession.setUserAdmin(false);
	XXPortalUser xXPortalUser = new XXPortalUser();
	xXPortalUser.setLoginId(userLoginID);
	xXPortalUser.setId(userId);
	currentUserSession.setXXPortalUser(xXPortalUser);
	
	VXUser loggedInUser = new VXUser();
	List<String> loggedInUserRole = new ArrayList<String>();
	loggedInUserRole.add(RangerConstants.ROLE_USER);
	loggedInUser.setId(8L);
	loggedInUser.setName("testuser");
	loggedInUser.setUserRoleList(loggedInUserRole);
	Mockito.when(xUserService.getXUserByUserName("testuser")).thenReturn(loggedInUser);
	Mockito.when(svcStore.getService(Id)).thenReturn(actualService);
	RangerService service = serviceREST.getService(Id);
	Assert.assertNotNull(service);
	Mockito.verify(svcStore).getService(Id);
	Assert.assertNull(service.getDescription());
	Assert.assertTrue(service.getConfigs().isEmpty());
	Assert.assertEquals(service.getId(), Id);
	Assert.assertEquals(service.getName(), "HDFS_1");
	Assert.assertEquals(service.getType(), "1");
}