public void addCacheConfig(CacheConfig cacheConfig) {
        configs.add(cacheConfig);
    }
@Test
    public void test_cachePostJoinOperationFails_whenJCacheNotAvailable_withCacheConfigs() {
        // JCache is not available in classpath
        OnJoinCacheOperation onJoinCacheOperation = createTestOnJoinCacheOperation(false);
        // some CacheConfigs are added in the OnJoinCacheOperation (so JCache is actually in use in the rest of the cluster)
        onJoinCacheOperation.addCacheConfig(new CacheConfig("test"));
        onJoinCacheOperation.setNodeEngine(nodeEngine);

        assertThatThrownBy(onJoinCacheOperation::run)
                .isInstanceOf(HazelcastException.class)
                .hasMessage("Service with name 'hz:impl:cacheService' not found!");

        verify(nodeEngine).getLogger(onJoinCacheOperation.getClass());
        verifyNoMoreInteractions(nodeEngine);
        verify(logger).severe(anyString());
    }