### Question:
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassBuilder setServerAddress(final URI serverAddress) { if (serverAddress == null) { throw new NullPointerException("Server address cannot be null."); } this.serverAddress = serverAddress; markAsSet(Attribute.SERVER_ADDRESS); return this; }  @Override UserPassBuilder setPassword(final String password); @Override UserPassProduct build(); @Override UserPassBuilder setServerAddress(final URI serverAddress); @Override UserPassBuilder setUsername(final String username);  }### Answer:
@Test(expected = NullPointerException.class) public void testSetNullServerAddress() { builder.setServerAddress(null); }