### Question:
ConfigPropertyServiceImpl implements ConfigPropertyService { @Override public boolean isPropertyExisting(ConfigPropertyItem configPropertyItem) throws Exception { List<ConfigProperty> configPropertyList = configPropertyRepository.findAll(); List<ConfigProperty> matchList = new ArrayList<>(); configPropertyList.forEach(existingConfigProperty -> { if (existingConfigProperty.toString().equals(configPropertyItem.toString() + "|" + activeProfile)) { matchList.add(existingConfigProperty); } }); return matchList.size() > 0; }  @Override ConfigTreeNode listProperties(); @Override @Transactional List<ConfigProperty> addUpdateProperties(ConfigPropertyRequest configPropertyRequest, String user,
			String userMessage, String timeNow, boolean partOfRollbackOperation); @Override @Transactional String deleteProperty(ConfigPropertyItem configPropertyItem, String user, String userMessage, String timeNow,
			boolean partOfRollbackOperation); @Override boolean isAllPropertiesExisting(ConfigPropertyRequest configPropertyRequest); @Override boolean isAnyPropertyExisting(ConfigPropertyRequest configPropertyRequest); @Override boolean isPropertyExisting(ConfigPropertyItem configPropertyItem); @Override boolean isCfkeyExisting(String cfkey); @Override boolean isAllCfkeysExisting(ConfigPropertyRequest configPropertyRequest); @Override boolean isApplicationExisting(String application); @Override boolean isAllApplicationsExisting(ConfigPropertyRequest configPropertyRequest); @Override List<String> listAllKeys(); @Override ConfigPropertyAuditTrail listAllConfigPropertyAudits(String timestamp); @Override ConfigPropertyRollbackPreview getRollbackPreview(String timestamp); @Override @Transactional String doConfigPropertyRollbackToTimestamp(String timestamp, String user, String userMessage); @Override List<ConfigProperty> listProperty(String cfkey, String application);  }### Answer:
@Test public void isPropertiesExistingTest() throws Exception { ConfigPropertyItem configPropertyRequest = new ConfigPropertyItem(); configPropertyRequest.setApplication("application"); configPropertyRequest.setConfigKey("applevelkey2"); configPropertyRequest.setConfigValue("applevelvalue"); List<ConfigProperty> cfList = new ArrayList<>(); ConfigProperty cf1 = new ConfigProperty(); ConfigPropertyKey cfkey1 = new ConfigPropertyKey(); cfkey1.setApplication("application"); cfkey1.setCfkey("applevelkey1"); cfkey1.setProfile("dev"); cf1.setConfigKeyParams(cfkey1); cf1.setValue("applevelvalue"); cfList.add(cf1); when(configPropertyRepository.findAll()).thenReturn(cfList); assertFalse(configPropertyService.isPropertyExisting(configPropertyRequest)); }