@Test
void testCheckClosed() throws Exception {

    DefaultBindingNamingEnumeration enumeration = new DefaultBindingNamingEnumeration(new ArrayList<>());
    enumeration.close();
    assertThrows(NamingException.class, enumeration::close);
}