Neuron implements Serializable { public double[] getFeatures() { return features.get().clone(); } Neuron(long identifier,
           double[] features); long getIdentifier(); int getSize(); double[] getFeatures(); boolean compareAndSetFeatures(double[] expect,
                                         double[] update);  }
@Test public void testGetFeatures() { final double[] features = { -1, -1e-97, 0, 23.456, 9.01e203 } ; final Neuron n = new Neuron(1, features); final double[] f = n.getFeatures(); Assert.assertFalse(f == features); Assert.assertEquals(features.length, f.length); for (int i = 0; i < features.length; i++) { Assert.assertEquals(features[i], f[i], 0d); } }