### Question:
DefaultLoginFormAdapter implements LoginFormAdapter { @Override public LoginCommand parseAndFill(String content, String username, String password) { if (content == null) throw new IllegalArgumentException("content must not be null"); if (username == null || username.trim().isEmpty()) throw new IllegalArgumentException("username must not be null or empty"); if (password == null || password.trim().isEmpty()) throw new IllegalArgumentException("password must not be null or empty"); LoginCommandImpl parsed = parseLoginForm(content); return fillLoginCommand(parsed, username.trim(), password.trim()); } DefaultLoginFormAdapter(String authorizeUrl); @Override LoginCommand parseAndFill(String content, String username, String password); String getAuthorizeUrl(); List<String> getValidInputNamesUsername(); void setValidInputNamesUsername(List<String> validInputNamesUsername); List<String> getValidInputNamesPassword(); void setValidInputNamesPassword(List<String> validInputNamesPassword);  }### Answer:
@Test public void testParseAndFillNullContent() { thrown.expect(IllegalArgumentException.class); adapter.parseAndFill(null, "username", "password"); }
@Test public void testParseAndFillNullUsername() { thrown.expect(IllegalArgumentException.class); adapter.parseAndFill("content", null, "password"); }
@Test public void testParseAndFillEmptyUsername() { thrown.expect(IllegalArgumentException.class); adapter.parseAndFill("content", " ", "password"); }
@Test public void testParseAndFillNullPassword() { thrown.expect(IllegalArgumentException.class); adapter.parseAndFill("content", "username", null); }
@Test public void testParseAndFillEmptyPassword() { thrown.expect(IllegalArgumentException.class); adapter.parseAndFill("content", "username", " "); }