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