@Test
public void testLogin() {

	User acc = ServiceTestConfiguration.user();
	when(repo.findByUseridAndPasswd(ServiceTestConfiguration.USER_ID, ServiceTestConfiguration.PASSWORD)).thenReturn(acc);
	when(repo.save(isA(User.class))).thenReturn(acc);
	
	Map<String,Object> result = service.login(ServiceTestConfiguration.USER_ID, ServiceTestConfiguration.PASSWORD);
	assertEquals(result.get("accountid"),ServiceTestConfiguration.PROFILE_ID);
	assertNotNull(result.get("authToken"));
}