@Test
public void testResolvePackageWithMainPath() throws Exception {
final Bean projectServiceBean = (Bean) beanManager.getBeans( ProjectService.class ).iterator().next();
final CreationalContext cc = beanManager.createCreationalContext( projectServiceBean );
final ProjectService projectService = (ProjectService) beanManager.getReference( projectServiceBean,
ProjectService.class,
cc );
final URL rootUrl = this.getClass().getResource( "/ProjectBackendTestProjectStructureValid/src/main" );
final org.uberfire.java.nio.file.Path nioRootPath = fs.getPath( rootUrl.toURI() );
final Path rootPath = paths.convert( nioRootPath );
//Test a root/src/main resolves to null
final Package result = projectService.resolvePackage( rootPath );
assertNull( result );
}