User { public User(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } User(String firstName, String lastName); @Override String toString(); final String firstName; final String lastName; }
@Test public void testUser() throws Exception { Assert.assertEquals(firstName, user.firstName); Assert.assertEquals(lastName, user.lastName); }