@Test public void testSetUsername() { try { apiClient.setUsername("my-username"); fail("there should be no HTTP basic authentications"); } catch (RuntimeException e) { } }