@Test
  public void testShouldDetectorsBeBound() throws Exception {
    // GIVEN

    // WHEN
    AttributeDetectorFactory f = injector.getInstance(AttributeDetectorFactory.class);

    // THEN
    Assert.assertNotNull(f);
    LOG.info(f.groupAttributeDetector().toString());
    LOG.info(f.userAttributDetector().toString());

  }
Test for the GUICE LdapModule setup

- checks the module's bindings (can the GUICE context be created properely)
- checks for specific instances in the GUICE context (re they constructed properly, what is the instance' scope)

It's named functional test as it creates a GUICE context. ("Real" unit tests only mock a class' collaborators, and
are more lightweight)

By default the test is ignored, as it connects to external LDAP instances, thus in different environments may fail
ambari-server/src/test/java/org/apache/ambari/server/ldap/LdapModuleFunctionalTest.java