JavaCompilation compilationLeft = CompilationUtils.compileFile(TEST_DATA + "TestLeft.java");
JavaCompilation compilationRight = CompilationUtils.compileFile(TEST_DATA + "TestRight.java");
Node rootLeft = convertFieldDeclaration("arrayField", compilationLeft);
Node rootRight = convertFieldDeclaration("arrayField", compilationRight);
StructureEntityVersion structureEntity = new StructureEntityVersion(JavaEntityType.FIELD, "arrayField", 0);
Distiller distiller = getDistiller(structureEntity);
distiller.extractClassifiedSourceCodeChanges(rootLeft, rootRight);
List<SourceCodeChange> changes = structureEntity.getSourceCodeChanges();
assertThat(changes.size(), is(1));
SourceCodeChange singleChange = changes.get(0);