### Question:
FilterParameter { public boolean isValid() { return isValid; } @JsonCreator  FilterParameter(
      @JsonProperty("fromBlock") final BlockParameter fromBlock,
      @JsonProperty("toBlock") final BlockParameter toBlock,
      @JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) @JsonProperty("address")
          final List<Address> address,
      @JsonDeserialize(using = TopicsDeserializer.class) @JsonProperty("topics")
          final List<List<LogTopic>> topics,
      @JsonProperty("blockhash") final Hash blockHash); BlockParameter getFromBlock(); BlockParameter getToBlock(); List<Address> getAddresses(); List<List<LogTopic>> getTopics(); Optional<Hash> getBlockHash(); LogsQuery getLogsQuery(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); boolean isValid();  }### Answer:
@Test public void jsonWithBlockAndFromAndToParametersIsInvalid() throws Exception { final String json = "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getLogs\",\"params\":[{" + "\"address\":\"0x0\", \"fromBlock\": \"0x0\", \"toBlock\": \"pending\"," + "\"topics\":[" + TOPICS_TWO_THREE_ARRAY + "," + TOPICS_TWO_THREE_ARRAY + "], \"blockhash\": \"" + Hash.ZERO + "\"}],\"id\":1}"; final JsonRpcRequestContext request = new JsonRpcRequestContext(readJsonAsJsonRpcRequest(json)); final FilterParameter parsedFilterParameter = request.getRequiredParameter(0, FilterParameter.class); assertThat(parsedFilterParameter.isValid()).isFalse(); }