### Question:
OfflineConfigurationCacheRepo { public OfflineConfigurationState getState() { return state; } OfflineConfigurationCacheRepo(final String apimAdapterCacheLocation); static OfflineConfigurationCacheRepo disabled(); boolean persistMetricConfig(final String serviceId, final String metricConfig); boolean persistProxyConfig(final String serviceId, final String proxyConfig); boolean persistPlanConfig(final String serviceId, final String clientId, final String planConfig); boolean persistMappingRulesConfig(final String serviceId, final String mappingRulesConfig); boolean persistOidc(String tokenIssuerUrl, String oidc); boolean persistJwks(String jwksUrl, String jwks); String findMetricConfig(final String serviceId); String findProxyConfig(final String serviceId); String findPlanConfig(final String serviceId, final String clientId); String findMappingRulesConfig(final String serviceId); String findOidc(String tokenIssuerUrl); String findJwks(String jwksUrl); boolean deletePlanConfig(final String serviceId, final String clientId); OfflineConfigurationState getState();  }### Answer:
@Test public void testEnabledMode() { OfflineConfigurationCacheRepo repo = new OfflineConfigurationCacheRepo(dir.toAbsolutePath().toString()); assertEquals(OfflineConfigurationState.ENABLED, repo.getState()); final String[] files = dir.toFile().list(); assertFalse(ArrayUtils.isEmpty(files)); }
@Test public void testInvalidPath() { OfflineConfigurationCacheRepo repo = new OfflineConfigurationCacheRepo("/this/path/does/not/exist"); assertEquals(OfflineConfigurationState.INVALID_CONFIG, repo.getState()); }