{
@Test
@SuppressWarnings("deprecation")
public void testChainBuildRpcRequestFromRpcRequestBuilder()
{
final RpcRequest req = new RpcRequestBuilder(URI.create("test"))
.setEntity(new byte[] {1,2,3,4})
.build()
.builder()
.setEntity(new byte[] {5,6,7,8})
.setURI(URI.create("anotherURI"))
.build();
Assert.assertEquals(new byte[] {5,6,7,8}, req.getEntity().copyBytes());
Assert.assertEquals(URI.create("anotherURI"), req.getURI());
}