}
@Test
public void checkNodeTextCreatedForSimpleImport() {
String code = "import a.b.c.D;";
considerCode(code);
<BUG>SingleTypeImportDeclaration imp = (SingleTypeImportDeclaration)cu.getChildNodes().get(0);
NodeText nodeText = lpp.getOrCreateNodeText(imp);</BUG>
assertEquals(Arrays.asList("import", " ", "a.b.c.D", ";", ""),
nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList()));
}

}
@Test
public void checkNodeTextCreatedForField() {
String code = "class A {int i;}";
considerCode(code);
ClassOrInterfaceDeclaration classA = cu.getClassByName("A").get();
FieldDeclaration fd = classA.getFieldByName("i").get();
NodeText nodeText = lpp.getOrCreateNodeText(fd);
assertEquals(Arrays.asList("int", " ", "i", ";"),
nodeText.getElements().stream().map(TextElement::expand).collect(Collectors.toList()));
}
