@Test
public void testDeregisterTopicCallback() {

	assertTrue(r1.connect());
	DummyTopicCallback cb1 = new DummyTopicCallback();
	DummyTopicCallback cb2 = new DummyTopicCallback();
	r1.registerTopicCallback("myTopic", cb1);
	r1.registerTopicCallback("myTopic", cb2);
	assertNull(cb1.latest);
	assertNull(cb2.latest);
	r1.deregisterTopicCallback("myTopic", cb1);
	r1.onMessage("{\"" + JRosbridge.FIELD_OP + "\":\""
			+ JRosbridge.OP_CODE_PUBLISH + "\",\"" + JRosbridge.FIELD_TOPIC
			+ "\":\"myTopic\",\"" + JRosbridge.FIELD_MESSAGE
			+ "\":{\"test1\":\"test2\"}}");
	Thread.yield();
	assertNull(DummyHandler.latest);
	assertNull(cb1.latest);
	assertNotNull(cb2.latest);
	assertEquals("{\"test1\":\"test2\"}", cb2.latest.toString());
}