@Test public void testCallToDelegate() { EnclaveKeySynchroniser enclaveKeySynchroniser = mock(EnclaveKeySynchroniser.class); EnclaveKeySynchroniserFactory enclaveKeySynchroniserFactory = new EnclaveKeySynchroniserFactory(enclaveKeySynchroniser); enclaveKeySynchroniserFactory.syncKeys(); verify(enclaveKeySynchroniser).syncKeys(); }
@Override public void syncKeys() { synchroniser.syncKeys(); }
EnclaveKeySynchroniserFactory implements EnclaveKeySynchroniser { @Override public void syncKeys() { synchroniser.syncKeys(); } }
EnclaveKeySynchroniserFactory implements EnclaveKeySynchroniser { @Override public void syncKeys() { synchroniser.syncKeys(); } EnclaveKeySynchroniserFactory(); protected  EnclaveKeySynchroniserFactory(EnclaveKeySynchroniser synchroniser); }
EnclaveKeySynchroniserFactory implements EnclaveKeySynchroniser { @Override public void syncKeys() { synchroniser.syncKeys(); } EnclaveKeySynchroniserFactory(); protected  EnclaveKeySynchroniserFactory(EnclaveKeySynchroniser synchroniser); static EnclaveKeySynchroniser provider(); @Override void syncKeys(); }
EnclaveKeySynchroniserFactory implements EnclaveKeySynchroniser { @Override public void syncKeys() { synchroniser.syncKeys(); } EnclaveKeySynchroniserFactory(); protected  EnclaveKeySynchroniserFactory(EnclaveKeySynchroniser synchroniser); static EnclaveKeySynchroniser provider(); @Override void syncKeys();  }