### Question:
EthGasPrice implements JsonRpcMethod { @Override public JsonRpcResponse response(final JsonRpcRequestContext requestContext) { final Wei gasPrice; Object result = null; gasPrice = miningCoordinator.getMinTransactionGasPrice(); if (gasPrice != null) { result = Quantity.create(gasPrice); } return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), result); } EthGasPrice(final MiningCoordinator miningCoordinator); @Override String getName(); @Override JsonRpcResponse response(final JsonRpcRequestContext requestContext);  }### Answer:
@Test public void shouldReturnExpectedValueWhenMiningCoordinatorExists() { final JsonRpcRequestContext request = requestWithParams(); final String expectedWei = "0x4d2"; final JsonRpcResponse expectedResponse = new JsonRpcSuccessResponse(request.getRequest().getId(), expectedWei); when(miningCoordinator.getMinTransactionGasPrice()).thenReturn(Wei.of(1234)); final JsonRpcResponse actualResponse = method.response(request); assertThat(actualResponse).isEqualToComparingFieldByField(expectedResponse); verify(miningCoordinator).getMinTransactionGasPrice(); verifyNoMoreInteractions(miningCoordinator); }