@Test public void testCreate() { UserFactory userFactory = new UserFactory(); assertNotNull(userFactory.create("username", "pass", "salt", "USER")); }
public User create(String username, String password, String salt, String role) { return new User(username, password, salt, role); }
UserFactory { public User create(String username, String password, String salt, String role) { return new User(username, password, salt, role); } }
UserFactory { public User create(String username, String password, String salt, String role) { return new User(username, password, salt, role); }  }
UserFactory { public User create(String username, String password, String salt, String role) { return new User(username, password, salt, role); }  User create(String username, String password, String salt, String role); }
UserFactory { public User create(String username, String password, String salt, String role) { return new User(username, password, salt, role); }  User create(String username, String password, String salt, String role);  }