@SuppressWarnings("unchecked") @Test public void testaddInterfaceNumerics() 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("0937240432")); whitelist.set(arrows, whitelistv1); Field interfaces = UMLArrows.class.getDeclaredField("interfaces"); interfaces.setAccessible(true); ArrayList<String> interfacesarray = (ArrayList<String>) interfaces.get(arrows); String toAdd = "0937240432"; interfacesarray.add(toAdd); arrows.addInterface(toAdd); assertEquals(interfacesarray, interfaces.get(arrows)); }