@Test
	public void insertTest() {
		ChainingHashSet test = new ChainingHashSet(10);

		try {
			test.insert(50);
			test.insert(32);
		} catch (Exception e) {
			fail("Unexpected Execption");

		}

		try {
			test.insert(50);
			fail("ValueException");
		} catch (ValueException e) {
			// expected Exception
		} catch (Exception e) {
			fail("Unexpected Exception");
		}

		assertEquals(2, test.elements());
		assertEquals(true, test.contains(50));
		assertEquals(true, test.contains(32));

		ChainingHashSet test1 = new ChainingHashSet(3);
		try {
			test1.insert(50);
			test1.insert(32);
		} catch (Exception e) {
			fail("Unexpected Execption");

		}
		try {
			test.insert(50);
			fail("ValueException");
		} catch (ValueException e) {
					} catch (Exception e) {
			fail("Unexpected Exception");
		}

		assertEquals(2, test1.elements());
		assertEquals(true, test1.contains(50));
		assertEquals(true, test1.contains(32));

	}