@Test
	public void obtainingSubstringTest() {
		Context c = new Context();
		DataFactory factory = new DataFactory();
		IVPString a = factory.createIVPString();
		SubString substring = factory.createSubString();
		substring.setString(a.getUniqueID());
		substring.setBeginIndex("12");
		substring.setEndIndex("17");

		c.addString(a.getUniqueID(), "ABCDEFGHIJKLMNOPQRSTUWXYZ");

		HashMap map = new HashMap();
		map.put(a.getUniqueID(), a);
		map.put(substring.getUniqueID(), substring);

		IVPString result = (IVPString) substring.evaluate(c, map, factory);
		assertTrue(c.getString(result.getUniqueID()).equals("MNOPQ"));
	}