List<Long> userIds = Collections.singletonList( client.users_getLoggedInUser() );
List<ProfileField> profileFields = new ArrayList<ProfileField>();
profileFields.add( ProfileField.NAME );
UsersGetStandardInfoResponse response = client.users_getStandardInfo( userIds, profileFields );
User user = response.getUser().get( 0 );
assertNotNull( user.getName() );
assertNotSame( "", user.getName().trim() );
}