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