RequestMethod { protected void validateValue(final boolean condition, final String message) { if (!condition) { throw new IllegalArgumentException(message); } }  String getName(); T invoke(); T invoke(final List<Object> parameters); Invocation<T> toInvocation(); Invocation<T> toInvocation(final List<Object> parameters); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void testValidateValue() throws Exception { final RequestMethod<?> requestMethod = spy(RequestMethod.class); requestMethod.validateValue(true, randomUUID().toString()); }