@Test(expected = IllegalArgumentException.class) public void testBuilderShouldThrowIllegalArgumentExcepitonWhenUserNameNotProvided() { ProxyAuthentication.builder() .withUserName(null) .withPassword("pwd") .build(); }
public static Builder builder() { return new Builder(); }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } private  ProxyAuthentication(String userName, String password); }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } private  ProxyAuthentication(String userName, String password); static Builder builder(); String getUserName(); String getPassword(); }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } private  ProxyAuthentication(String userName, String password); static Builder builder(); String getUserName(); String getPassword();  }