AuthenticationResultBuilder { public static AuthenticationResult finished(final String username, final String database) { return new AuthenticationResult(username, database, true); }  static AuthenticationResult finished(final String username, final String database); static AuthenticationResult continued(); static AuthenticationResult continued(final String username, final String database);  }
@Test public void assertFinished() { AuthenticationResult actual = AuthenticationResultBuilder.finished("username", "database"); assertThat(actual.getUsername(), is("username")); assertThat(actual.getDatabase(), is("database")); assertTrue(actual.isFinished()); }