public UserProfile mapRow(ResultSet rs, int numRow) throws SQLException {
   UserProfile userProfile = new UserProfile();
   userProfile.setUserProfileId(rs.getString("USER_PROFILE_ID"));
   userProfile.setUserName(rs.getString("NAME"));
   userProfile.setEmail(rs.getString("EMAIL"));
   return userProfile;
 }
 @Test
 public void testGetUserProfile() {
   String name = "nut";
   UserProfile userProfile = userProfileService.getUserProfile(name);
   assertEquals(name, userProfile.getUserName());
 }