@Test
public void changedMethodShouldHaveChanges() throws Exception {
JavaCompilation compilationLeft = CompilationUtils.compileFile(TEST_DATA + "TestLeft.java");
JavaCompilation compilationRight = CompilationUtils.compileFile(TEST_DATA + "TestRight.java");
Node rootLeft = convertMethodDeclaration("foo", compilationLeft);
Node rootRight = convertMethodDeclaration("foo", compilationRight);
StructureEntityVersion structureEntity = new StructureEntityVersion(JavaEntityType.METHOD, "foo", 0);
Distiller distiller = getDistiller(structureEntity);
distiller.extractClassifiedSourceCodeChanges(rootLeft, rootRight);
assertThat(structureEntity.getSourceCodeChanges().size(), is(2));
}