@Test
public void testAddImportedTypes() {

    Interface interfaze = new Interface("com.foo.UserInterface");
    Set<FullyQualifiedJavaType> importedTypes = new HashSet<>();
    FullyQualifiedJavaType arrayList = FullyQualifiedJavaType.getNewArrayListInstance();
    FullyQualifiedJavaType hashMap = FullyQualifiedJavaType.getNewHashMapInstance();
    importedTypes.add(arrayList);
    importedTypes.add(hashMap);
    interfaze.addImportedTypes(importedTypes);
    assertNotNull(interfaze.getImportedTypes());
    assertEquals(2, interfaze.getImportedTypes().size());
    assertTrue(interfaze.getImportedTypes().contains(arrayList));
    assertTrue(interfaze.getImportedTypes().contains(hashMap));
}