Credentials { public boolean isDemoCredentials() { return this.equals(Credentials.createDemoCredentials()); } Credentials(String serverURL, String username, String password); static Credentials createDemoCredentials(); String getServerURL(); String getUsername(); String getPassword(); String getUserUid(); void setUserUid(String userUid); boolean isDemoCredentials(); boolean equals(Object o); int hashCode();  }
@Test public void have_isDemoCredentials_equal_to_false_when_is_not_a_demo_credentials() { Credentials credentials = new Credentials("server", "user", "pwd"); assertThat(credentials.isDemoCredentials(), is(false)); }