test loading a regular , non-admin user , ensuring that the returned userdetails object has role_user but not role_admin . concode_field_sep ClientDetailsEntity pairwiseClient1 concode_elem_sep ClientDetailsEntity pairwiseClient2 concode_elem_sep ClientDetailsEntity pairwiseClient3 concode_elem_sep String sectorIdentifier3 concode_elem_sep ClientDetailsEntity pairwiseClient4 concode_elem_sep String regularUsername concode_elem_sep String sectorIdentifier1 concode_elem_sep UserInfoRepository userInfoRepository concode_elem_sep String adminSub concode_elem_sep String sectorIdentifier2 concode_elem_sep String publicClientId1 concode_elem_sep String pairwiseSub12 concode_elem_sep UserInfo userInfoRegular concode_elem_sep String publicClientId2 concode_elem_sep String pairwiseClientId4 concode_elem_sep ClientDetailsEntity publicClient1 concode_elem_sep ClientDetailsEntity publicClient2 concode_elem_sep DefaultUserInfoService service concode_elem_sep String pairwiseSub4 concode_elem_sep String pairwiseClientId2 concode_elem_sep ClientDetailsEntityService clientDetailsEntityService concode_elem_sep String adminUsername concode_elem_sep String pairwiseSub3 concode_elem_sep UserInfo userInfoAdmin concode_elem_sep String regularSub concode_elem_sep PairwiseIdentiferService pairwiseIdentiferService concode_elem_sep String pairwiseClientId1 concode_elem_sep String pairwiseClientId3 concode_field_sep void loadByUsername_admin_success concode_elem_sep void getByUsernameAndClientId_publicClients concode_elem_sep void prepare concode_elem_sep void getByUsernameAndClientId_pairwiseClients concode_elem_sep void loadByUsername_nullUser
void function ( ) { Mockito . when ( userInfoRepository . getByUsername ( regularUsername ) ) . thenReturn ( userInfoRegular ) ; UserInfo loc0 = service . getByUsername ( regularUsername ) ; assertEquals ( loc0 . getSub ( ) , regularSub ) ; }