### Question:
PendingTransactionFilter { public Set<Transaction> reduce( final Set<TransactionInfo> pendingTransactions, final List<Filter> filters, final int limit) throws InvalidJsonRpcParameters { return pendingTransactions.stream() .filter(transactionInfo -> applyFilters(transactionInfo, filters)) .limit(limit) .map(TransactionInfo::getTransaction) .collect(Collectors.toSet()); }  Set<Transaction> reduce(
      final Set<TransactionInfo> pendingTransactions, final List<Filter> filters, final int limit); static final String FROM_FIELD; static final String TO_FIELD; static final String GAS_FIELD; static final String GAS_PRICE_FIELD; static final String VALUE_FIELD; static final String NONCE_FIELD; }### Answer:
@Test public void localAndRemoteAddressShouldNotStartWithForwardSlash() { final Set<Transaction> filteredList = pendingTransactionFilter.reduce(getPendingTransactions(), filters, limit); assertThat(filteredList.size()).isEqualTo(expectedListOfTransactionHash.size()); for (Transaction trx : filteredList) { assertThat(expectedListOfTransactionHash).contains(trx.getHash().toHexString()); } }