public void testAddText() throws BuildException { IntrospectionHelper ih = IntrospectionHelper.getHelper(java.lang.String.class); try { ih.addText("", "test"); fail("String doesn\'t support addText"); } catch (BuildException be) { } ih = IntrospectionHelper.getHelper(getClass()); ih.addText(this, "test"); try { ih.addText(this, "test2"); fail("test2 shouldn\'t be equal to test"); } catch (BuildException be) { assertTrue(be.getException() instanceof AssertionFailedError); } }