@Test
public void testTrustManagerProxyCheckServerTrusted(@Mocked X509ExtendedTrustManager mockedTrustManager) throws CertificateException {

    new Expectations() {{
        mockedTrustManager.checkServerTrusted((X509Certificate[]) any, "cert"); times = 1;
    }};
    TrustManagerProxy trustManagerProxy = new TrustManagerProxy(new TrustManager[]{mockedTrustManager});
    trustManagerProxy.checkServerTrusted(null, "cert");
}