### Question:
BuildPropertiesReader { public List<BuildProperties> getNonServiceBuildProperties() { readAllBuildProperties(); List<BuildProperties> nonServiceProperties = new LinkedList<>(); for(BuildProperties buildProperties : allBuildProperties) { if(!buildProperties.isService()) { nonServiceProperties.add(buildProperties); } } return nonServiceProperties; } BuildPropertiesReader(String buildPropertiesFile); BuildProperties getFirstServiceBuildProperties(); List<BuildProperties> getNonServiceBuildProperties(); List<BuildProperties> getAllBuildProperties(); void setResourceRetriever(ResourceRetriever resourcesRetriever);  }### Answer:
@Test(dataProvider = "ServicePropertiesCountProvider") public void getNonServiceBuildProperties(final int SERVICE_PROPERTIES_COUNT) throws Exception { final int NON_SERVICE_PROPERTIES_COUNT = 10; generateResourceContents(SERVICE_PROPERTIES_COUNT, NON_SERVICE_PROPERTIES_COUNT); List<BuildProperties> result = buildPropertiesReader.getNonServiceBuildProperties(); Assert.assertEquals(result.size(), NON_SERVICE_PROPERTIES_COUNT); assertAllPropertiesValid(result); }