Euclidean3D implements Serializable, Space { public static Euclidean3D getInstance() { return LazyHolder.INSTANCE; } private  Euclidean3D(); static Euclidean3D getInstance(); int getDimension(); Euclidean2D getSubSpace();  }
@Test public void testSerialization() { Space e3 = Euclidean3D.getInstance(); Space deserialized = (Space) TestUtils.serializeAndRecover(e3); Assert.assertTrue(e3 == deserialized); }