@Test
public void testNext2() throws Exception {

    NameClassPair pair = new NameClassPair("name", "className");
    ArrayList<NameClassPair> list = new ArrayList<>();
    list.add(pair);
    DefaultNamingEnumeration enumeration = new DefaultNamingEnumeration(list);
    assertNotNull(enumeration.next());
}