}
@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
public void testRootSimpleResourcePartialUpdate(RootBuilderWrapper<Void, Greeting> builders) throws RemoteInvocationException
{
Greeting greeting = new Greeting();
greeting.setMessage("Message1");
greeting.setTone(Tone.SINCERE);
greeting.setId(12345L);
PatchRequest<Greeting> patch = PatchGenerator.diffEmpty(greeting);
// PUT
Request<EmptyRecord> writeRequest = builders.partialUpdate().input(patch).build();
REST_CLIENT.sendRequest(writeRequest).getResponse();
// GET again, to verify that our PUT worked.
Request<Greeting> request = builders.get().build();
Response<Greeting> response = REST_CLIENT.sendRequest(request).getResponse();
greeting = response.getEntity();
Assert.assertEquals(greeting.getTone(), Tone.SINCERE);
}