Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/tests/java/util/EnumerationTest.java
package tests.java.util;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import java.util.Enumeration;
import java.util.Vector;

public class EnumerationTest {

    @Test
    public void test() {
        Vector<String> values = new Vector<>();
        values.add("one");
        values.add("two");
        String s = "";
        for (Enumeration<String> e = values.elements(); e.hasMoreElements();) {
            s += e.nextElement();
        }
        assertEquals("onetwo", s);
    }
}
-------------------------------------------------------------------------------
Test set: tests.java.util.EnumerationTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in tests.java.util.EnumerationTest
test  Time elapsed: 0 s