@Test
  public void testShouldDetectorPassWhenEmptySampleSetProvided() throws Exception {
    // GIVEN
    List<Entry> sampleEntryList = Lists.newArrayList();

    // WHEN
    // WHEN
    for (Entry entry : sampleEntryList) {
      groupMemberAttrDetector.collect(entry);
    }

    Map<String, String> detectedAttributeMap = groupMemberAttrDetector.detect();
    // THEN
    Assert.assertEquals(1, detectedAttributeMap.size());
    Map.Entry<String, String> selectedEntry = detectedAttributeMap.entrySet().iterator().next();

    Assert.assertEquals("The selected configuration property is not the expected one", groupMemberAttrDetector.detectedProperty(), selectedEntry.getKey());
    Assert.assertEquals("The selected configuration property value is not the expected one", "N/A", selectedEntry.getValue());

  }
Test suite for the attribute detector implementation
ambari-server/src/test/java/org/apache/ambari/server/ldap/service/ads/detectors/GroupMemberAttrDetectorTest.java