@Test
public void shouldSuccessOnVersionVerified() {

    given(verifier.isValidVersion(anyString())).willReturn(true);
    mockServer.expect().withPath("/api/info")
            .andReturn(200, "{\"version\":\"0.59.0\"}").once();
    RocketChatVerifier.checkServerVersion(client, baseUrl.toString(), verifier, callback);
    verify(callback, timeout(1000).times(1)).onSuccess();
}