@Test(expected = InvalidCredentialsOpenShiftException.class)
public void shouldThrowIfInvalidCredentials() throws Exception {
// dont test on dev server
OpenShiftTestConfiguration configuration = new OpenShiftTestConfiguration();
if (configuration.isDevelopmentServer()) {
throw new InvalidCredentialsOpenShiftException(null, new HttpClientException(""), null);
}
new TestConnectionBuilder()
.credentials(configuration.getClientId(), "bogus-password").create().getUser();
}