@Test
public void testSend() {

	assertTrue(r1.connect());
	assertTrue(r1.send(Json.createObjectBuilder().add("test", "value")
			.build()));
	while (DummyHandler.latest == null) {
		Thread.yield();
	}
	assertNotNull(DummyHandler.latest);
	assertEquals(1, DummyHandler.latest.size());
	assertTrue(DummyHandler.latest.containsKey("test"));
	assertEquals("value", DummyHandler.latest.getString("test"));
}