Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/tests/java/util/HashSetTest.java
/*
 * #%L
 * Evaluation
 * %%
 * Copyright (C) 2016 Github jjYBdx4IL Projects
 * %%
 * #L%
 */
package tests.java.util;

import java.util.HashSet;
import java.util.Set;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
 *
 * @author Github jjYBdx4IL Projects
 */
public class HashSetTest {

    @Test
    public void test() {
        Set<String> set = new HashSet<>();
        set.add("abc");
        set.add("abc");
        assertEquals(1, set.size());
    }
}
-------------------------------------------------------------------------------
Test set: tests.java.util.HashSetTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in tests.java.util.HashSetTest
test  Time elapsed: 0 s