  @Test
  public void testCreatingAndApplying() throws Exception {

    Patch patch = createPatch();

    assertAppliedAndRevertedCorrectly(patch, PatchFileCreator.prepareAndValidate(myFile, myOlderDir, TEST_UI));
  }