Delegatee { private static void close(@NotNull ContentSession systemSession) { try { systemSession.close(); } catch (IOException e) { log.error("Error while closing ContentSession {}", systemSession); } } private  Delegatee(@NotNull SyncHandler handler, @NotNull ExternalIdentityProvider idp,
                      @NotNull ContentSession systemSession, @NotNull SecurityProvider securityProvider, int batchSize);   }
@Test public void testDoubleClose() { delegatee.close(); delegatee.close(); }