To make this more testable (not depend on the COPEPlugin in the test) you can set the SnapshotManager to take in its parent directory. That way the test does not depend on other things which are not under test. And you can perform test cleanup easier (like deleting test files).