@Test
public void testNextElement() throws Exception {

    DefaultNamingEnumeration enumeration = new DefaultNamingEnumeration(new ArrayList<>());
    assertThrows(NoSuchElementException.class, enumeration::nextElement);
}