@Test
public void testResultFor() throws Exception {

    {
        final String expectedResult = "dummy string";
        RpcResult<String> rpcResult = Util.resultRpcSuccessFor(expectedResult).get();
        assertEquals(expectedResult, rpcResult.getResult());
        assertTrue(rpcResult.isSuccessful());
        assertTrue(rpcResult.getErrors().isEmpty());
    }
    {
        final Integer expectedResult = 42;
        RpcResult<Integer> rpcResult = Util.resultRpcSuccessFor(expectedResult).get();
        assertEquals(expectedResult, rpcResult.getResult());
        assertTrue(rpcResult.isSuccessful());
        assertTrue(rpcResult.getErrors().isEmpty());
    }
}