@Test
 public void testIntegration() {
   assertNotNull(person);
   assertEquals("Joe bloggs", person.getName());
   assertEquals(42, person.getAge());
   assertEquals("testPwd", person.getPassword());
 }
 @SuppressWarnings("deprecation")
 public String personToText(Person p) {
   return ""
       + p.getId()
       + ";"
       + p.getName()
       + ";"
       + p.getEmail()
       + ";"
       + p.getDateOfBirth().getYear()
       + "-"
       + ((p.getDateOfBirth().getMonth() < 10)
           ? ("0" + p.getDateOfBirth().getMonth())
           : p.getDateOfBirth().getMonth())
       + "-"
       + ((p.getDateOfBirth().getDate() < 10)
           ? ("0" + p.getDateOfBirth().getDate())
           : p.getDateOfBirth().getDate())
       + ";"
       + p.getUsername()
       + ";"
       + p.getPassword();
 }
  public static Boolean getLogin() {

    Boolean status = false;

    try {
      Person person = new Person();
      person = csv.findPerson(userName, passWord, "src/people.csv");
      if (person.getUsername() != null && person.getPassword() != null) {
        //				if (person.getRole() == "user") {
        lblWelcome.setText("Welcome : " + person.getUsername());
        //				}
        status = true;
      } else {
        JOptionPane.showMessageDialog(null, "Incorrect Username/Password");
      }

    } catch (Exception e) {
      // TODO Auto-generated catch block
      JOptionPane.showMessageDialog(null, e.getMessage());
      e.printStackTrace();
    }

    return status;
  }