@Test
public void testSetPatchDirectory() throws Exception {

    final ImportOptions delegate = new ImportOptions();
    final InternalImportOptions options = new InternalImportOptions(pid, delegate, null);
    delegate.setPatchDirectory(null);
    assertNull("patchDirectory null", options.getPatchDirectory());
    delegate.setPatchDirectory(new File("."));
    assertSame("patchDirectory file", delegate.getPatchDirectory(), options.getPatchDirectory());
    options.setPatchDirectory(null);
    assertNull("patchDirectory null", delegate.getPatchDirectory());
    options.setPatchDirectory(new File("."));
    assertSame("patchDirectory file", options.getPatchDirectory(), delegate.getPatchDirectory());
}