### Question:
RpcModules implements JsonRpcMethod { @Override public String getName() { return RpcMethod.RPC_MODULES.getMethodName(); } RpcModules(final Collection<RpcApi> modulesList); @Override String getName(); @Override JsonRpcResponse response(final JsonRpcRequestContext requestContext);  }### Answer:
@Test public void shouldReturnCorrectMethodName() { assertThat(method.getName()).isEqualTo(RPC_METHOD); }