### Question:
UsernameTokenState { public static UsernameTokenStateBuilder builder() { return new UsernameTokenStateBuilder(); } private  UsernameTokenState(UsernameTokenStateBuilder builder); static UsernameTokenStateBuilder builder(); byte[] getUsername(); byte[] getPassword(); JsonValue toJson(); static UsernameTokenState fromJson(JsonValue jsonValue); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other);  }### Answer:
@Test(expectedExceptions = TokenMarshalException.class) public void testNoPassword() throws TokenMarshalException { UsernameTokenState.builder().username(USERNAME.getBytes()).build(); }
@Test(expectedExceptions = TokenMarshalException.class) public void testNoUsername() throws TokenMarshalException { UsernameTokenState.builder().password(PASSWORD.getBytes()).build(); }