@Test public void testsetSuperSpecial() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException { UMLArrows arrows = UMLArrows.getInstance(); Field whitelist = WorkerForArrows.class.getDeclaredField("whitelist"); whitelist.setAccessible(true); ArrayList<String> whitelistv1 = new ArrayList<String>(Arrays.asList("#$%^&*(<>?:\"{}';'")); whitelist.set(arrows, whitelistv1); Field supers = UMLArrows.class.getDeclaredField("supers"); supers.setAccessible(true); // We must avoid having the stripper from touching this string String theSuper = "#$%^&*(<>?:\"{}';'"; arrows.setSuper(theSuper); assertEquals(theSuper, supers.get(arrows)); }