@Test
public void shouldCreateImportMetadata() throws Exception {
List<ImportMetadata> data = javaMetadata.createImportMetadata((CompilationUnit)rootNode);
assertEquals(2, data.size());
ImportMetadata singleImport = data.get(0);
assertEquals(ImportMetadata.Type.SINGLE, singleImport.getType());
assertEquals("org.acme.annotation.MyClassAnnotation", singleImport.getName());
ImportMetadata onDemandImport = data.get(1);
assertEquals(ImportMetadata.Type.ON_DEMAND, onDemandImport.getType());
assertEquals("java.util", onDemandImport.getName());
}