@Test
//https://issues.jboss.org/browse/GUVNOR-2478
public void testImportGeneration() {

    final InputStream is = this.getClass().getResourceAsStream("GUVNOR-2478.xls");
    when(ioService.newInputStream(any(org.uberfire.java.nio.file.Path.class))).thenReturn(is);
    final ConversionResult result = converter.convert(path);
    assertNotNull(result);
    final ArgumentCaptor<Path> projectImportsPathArgumentCaptor = ArgumentCaptor.forClass(Path.class);
    final ArgumentCaptor<ProjectImports> projectImportsArgumentCaptor = ArgumentCaptor.forClass(ProjectImports.class);
    verify(importsService,
           times(1)).save(projectImportsPathArgumentCaptor.capture(),
                          projectImportsArgumentCaptor.capture(),
                          any(Metadata.class),
                          any(String.class));
    assertNotNull(projectImportsPathArgumentCaptor.getValue());
    final Path actualProjectImportsPath = projectImportsPathArgumentCaptor.getValue();
    assertEquals(expectedProjectImportsPath.toURI(),
                 actualProjectImportsPath.toURI());
    assertNotNull(projectImportsArgumentCaptor.getValue());
    final ProjectImports projectImports = projectImportsArgumentCaptor.getValue();
    assertEquals(1,
                 projectImports.getImports().getImports().size());
    assertEquals("java.util.List",
                 projectImports.getImports().getImports().get(0).getType());
    verify(guidedDecisionTableService,
           times(1)).create(any(Path.class),
                            any(String.class),
                            any(GuidedDecisionTable52.class),
                            any(String.class));
}