### Question:
AAIRestClient extends GraphInventoryRestClient { protected GraphInventoryPatchConverter getPatchConverter() { return this.patchConverter; } protected  AAIRestClient(AAIProperties props, URI uri, Map<String, String> additionalHeaders); @Override ONAPComponents getTargetEntity();  }### Answer:
@Test public void verifyPatchValidation() throws URISyntaxException { AAIRestClient client = new AAIRestClient(props, new URI(""), new HashMap<String, String>()); AAIRestClient spy = spy(client); GraphInventoryPatchConverter patchValidatorMock = mock(GraphInventoryPatchConverter.class); doReturn(patchValidatorMock).when(spy).getPatchConverter(); String payload = "{}"; doReturn(Response.ok().build()).when(spy).method(eq("PATCH"), any()); spy.patch(payload); verify(patchValidatorMock, times(1)).convertPatchFormat(eq((Object) payload)); }