### Question:
OfflineConfigurationCacheRepo { static Predicate<Path> byBaseNameFilter(final String baseFileName) { return file -> { final String fileName = file.getFileName().toString(); return fileName.startsWith(baseFileName); }; } 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 testByBaseNameFilter() { Predicate<Path> pathPredicate = OfflineConfigurationCacheRepo.byBaseNameFilter("abc_serviceA"); assertTrue(pathPredicate.test(Paths.get("abc_serviceA_20190322.json"))); assertFalse(pathPredicate.test(Paths.get("abc_serviceB_20190322.json"))); }