public class SimpleTest {
@Test
public void testRequests() {
JsonRpcRequest reqSent = JsonRpcRequest.newStartRequest("fake sdp",
new JsonRpcConstraints("sendonly", "sendonly"), 9);
String json = GsonUtils.getGson().toJson(reqSent);
JsonRpcRequest reqReceived = GsonUtils.getGson().fromJson(json,
JsonRpcRequest.class);
assertTrue(reqReceived.getMethod().equals("start"));