@Test
public void shouldSaveSnapshotOnExit() throws Exception
{

    File                 file     = new File("/foo");
    RemoteCallable<Void> callable = JProfiler.saveSnapshotOnExit(file);
    changeClass(callable);
    callable.call();
    verify(ControllerStub.methodStub).method("saveSnapshotOnExit", file);
}