public static void checkCurrentMementoSerializable(ManagementContext mgmt) throws Exception {
   BrooklynMemento memento = MementosGenerators.newBrooklynMemento(mgmt);
   serializeAndDeserialize(memento);
 }
 public static void checkMementoSerializable(Application app) throws Exception {
   BrooklynMemento memento = MementosGenerators.newBrooklynMemento(app.getManagementContext());
   checkMementoSerializable(memento);
 }