### Question:
PseudoAuthenticator implements Authenticator { protected String getUserName() { return System.getProperty("user.name"); }  @Override void setConnectionConfigurator(ConnectionConfigurator configurator); @Override void authenticate(URL url, AuthenticatedURL.Token token); static final String USER_NAME; }### Answer:
@Test public void testGetUserName() throws Exception { PseudoAuthenticator authenticator = new PseudoAuthenticator(); Assert.assertEquals(System.getProperty("user.name"), authenticator.getUserName()); }