MigraMongoJMX { @ManagedOperation public void destroyLocks() { migraMongo.destroyLocks(); } MigraMongoJMX(MigraMongo migraMongo); @ManagedOperation String migrate(); @ManagedOperation String migrateAsync(); @ManagedOperation String dryRun(); @ManagedOperation String status(String fromVersion); @ManagedOperation Boolean needsMigration(); @ManagedOperation String history(); @ManagedOperation void destroyLocks();  }
@Test public void shouldDestroyLock() { migraMongoJMX.destroyLocks(); verify(migraMongo).destroyLocks(); }