@Test
public void shouldNotCallVersionVerifierWithInvalidResponse() {

    mockServer.expect().withPath("/api/info").andReturn(200, "INVALID_RESPONSE").once();
    RocketChatVerifier.checkServerVersion(client, baseUrl.toString(), verifier, callback);

    verify(verifier, timeout(1000).times(0))
            .isValidVersion(versionCaptor.capture());
}