### Question:
OfflineConfigurationCacheRepo { public boolean deletePlanConfig(final String serviceId, final String clientId) { return deleteAll(ConfigType.PLAN, new String[]{serviceId, clientId}); } 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 testDeletePlanConfig() { OfflineConfigurationCacheRepo repo = createRepo(); String config = createDummyConfig(); repo.persistPlanConfig("serviceId1", "clientIdA", config); repo.persistPlanConfig("serviceId1", "clientIdA", config); repo.persistPlanConfig("serviceId1", "clientIdX", config); final String[] filesBeforeDelete = repo.dir(ConfigType.PLAN).toFile().list(); assertEquals(3, filesBeforeDelete.length); repo.deletePlanConfig("serviceId1", "clientIdA"); final String[] filesAfterFirstDelete = repo.dir(ConfigType.PLAN).toFile().list(); assertEquals(1, filesAfterFirstDelete.length); assertFalse(filesAfterFirstDelete[0].contains("clientIdA")); assertTrue(filesAfterFirstDelete[0].contains("clientIdX")); repo.deletePlanConfig("serviceId1", "clientIdX"); final String[] filesAfterSecondDelete = repo.dir(ConfigType.PLAN).toFile().list(); assertTrue(ArrayUtils.isEmpty(filesAfterSecondDelete)); }