// IErlElement getChildWithResource(IResource rsrc);
@Test
public void getChildWithResource() throws Exception {
final IProject workspaceProject = project.getWorkspaceProject();
final IErlModel model = ErlangEngine.getInstance().getModel();
final IErlElement childWithResource = model
.getChildWithResource(workspaceProject);
final IResource resource = module.getResource();
final IErlElement childWithResource2 = model.getChildWithResource(resource);
final IErlFolder folder = (IErlFolder) project.getChildNamed("src");
final IErlElement childWithResource3 = folder.getChildWithResource(resource);
assertEquals(project, childWithResource);
assertNull(childWithResource2);
assertEquals(module, childWithResource3);
}