@Test
public void testClone() {

	TwistWithCovariance clone = p2.clone();
	assertEquals(p2.toString(), clone.toString());
	assertEquals(p2.toJsonObject(), clone.toJsonObject());
	assertEquals(p2.getMessageType(), clone.getMessageType());
	assertEquals(p2.getTwist(), clone.getTwist());
	assertTrue(Arrays.equals(p2.getCovariance(), clone.getCovariance()));
	assertTrue(Arrays.deepEquals(p2.getCovarianceMatrix(),
			clone.getCovarianceMatrix()));
	assertNotSame(p2, clone);
	assertNotSame(p2.toString(), clone.toString());
	assertNotSame(p2.toJsonObject(), clone.toJsonObject());
	assertNotSame(p2.getCovariance(), clone.getCovariance());
	assertNotSame(p2.getCovarianceMatrix(), clone.getCovarianceMatrix());
}