public void testOpen() throws OpenException, SaveException {
// create a test file to be read
BasicUniverseContextFactory factory = new BasicUniverseContextFactory();
UniverseContext universeContext = factory.createRandom();
UniverseContextIO io = new UniverseContextIO(saveFile);
io.write(universeContext);
// now try to read it
UniverseContext universeContext2 = application.openUniverse(saveFile);
assertEquals(universeContext.getState(), universeContext2.getState());
}