### Question:
JSONRepositoryImpl implements DataRepository<Rate, Transaction> { @Override public List<Rate> getRatesList(String datapath) throws CustomException { if (mRates.size() == 0 || !dataPathListRates.contains(datapath)) { addRates(datapath); cleanUpRatesKeySet(); dataPathListRates.add(datapath); } return mRates; } @Inject  JSONRepositoryImpl(JSONDataSourceImpl jsonDataSource); @Override List<Rate> getRatesList(String datapath); @Override List<Transaction> getTransactionsList(String datapath); @Override List<Transaction> getTransactionsPerSku(String pathTransactions, String sku); @Override boolean saveTransactions(Map<String, List<Transaction>> map);  }### Answer:
@Test public void getRatesList() throws Exception { rates.add(mock(Rate.class)); rates.add(mock(Rate.class)); assertEquals(2, repoUnderTest.getRatesList(MY_PATH).size()); }