### Question:
ODLJndiLdapRealm extends DefaultLdapRealm { protected static SearchControls createSearchControls() { SearchControls searchControls = new SearchControls(); searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE); return searchControls; } ODLJndiLdapRealm(); static String getUsername(AuthenticationToken token); static AuthorizationInfo buildAuthorizationInfo(final Set<String> roleNames); @Override String getUserDnSuffix(); void setSearchBase(final String searchBase); void setLdapAttributeForComparison(final String ldapAttributeForComparison); void setGroupRolesMap(final Map<String, String> groupRolesMap);  }### Answer:
@Test public void testCreateSearchControls() { SearchControls searchControls = ODLJndiLdapRealm.createSearchControls(); assertNotNull(searchControls); int expectedSearchScope = SearchControls.SUBTREE_SCOPE; int actualSearchScope = searchControls.getSearchScope(); assertEquals(expectedSearchScope, actualSearchScope); }