@Test
public void shouldForwardCallsToMockForMatchingHost() throws CertificateException {

    when(sslEngine.getPeerHost()).thenReturn("example.org");
    when(sslEngine.getPeerPort()).thenReturn(443);
    subject.checkServerTrusted(chain, "just", sslEngine);
    verify(trustmanager2).checkServerTrusted(chain, "just", sslEngine);
    verifyNoMoreInteractions(trustmanager, trustmanager2);
}