@Test
public void testInvoke() throws Exception {

  final RequestMethod<?> requestMethod = spy(RequestMethod.class);
  final String expected = randomUUID().toString();
  when(requestMethod.runInternal(anyList())).thenReturn(expected);
  final Object actual = requestMethod.invoke();
  assertEquals(expected, actual);
}