@Test
public void validateExceptionShouldIndicateMissingUsername() {

    TwitterPublisher twitter = new TwitterPublisher();
    twitter.setPassword("arbitrary");
    String expected = "'username' is required for TwitterPublisher";
    assertValidateFails(twitter, expected);
}