@Test public void create() throws Exception { // Create a Login Class Login login = LoginFactory.createLogin( "Garran", "password", "*****@*****.**", "Active", date, "Garran", "Michaels", "16513513", "21", "Vent Road", "Muizenberg", "WesternCape", "7945"); // Save in the Database service.save(login); // Id Should be available id = login.getId(); Assert.assertNotNull(login); }