@Test
public void shouldCallVersionVerifierWithRightVersion() {

    mockServer.expect().withPath("/api/info")
            .andReturn(200, "{\"version\":\"0.59.0\"}").once();
    RocketChatVerifier.checkServerVersion(client, baseUrl.toString(), verifier, callback);
    verify(verifier, timeout(1000)).isValidVersion(versionCaptor.capture());
    assertThat(versionCaptor.getValue(), is(equalTo("0.59.0")));
}