@Test
public void testFromJsonString() {

	PoseWithCovariance p = PoseWithCovariance.fromJsonString(p2.toString());
	assertEquals(p2.toString(), p.toString());
	assertEquals(p2.toJsonObject(), p.toJsonObject());
	assertEquals(p2.getMessageType(), p.getMessageType());
	assertEquals(p2.getPose(), p.getPose());
	assertTrue(Arrays.equals(p2.getCovariance(), p.getCovariance()));
	assertTrue(Arrays.deepEquals(p2.getCovarianceMatrix(),
			p.getCovarianceMatrix()));
	assertNotSame(p2, p);
	assertNotSame(p2.toString(), p.toString());
	assertNotSame(p2.toJsonObject(), p.toJsonObject());
	assertNotSame(p2.getPose(), p.getPose());
	assertNotSame(p2.getCovariance(), p.getCovariance());
	assertNotSame(p2.getCovarianceMatrix(), p.getCovarianceMatrix());
}