### Question:
JSONRepositoryImpl implements DataRepository<Rate, Transaction> { @Override public List<Transaction> getTransactionsPerSku(String pathTransactions, String sku) { if (dataPathListTransactions.contains(pathTransactions) && mDictionaryOfTransactions != null) { List<Transaction> transactions = mDictionaryOfTransactions.get(sku); if (transactions != null) { return transactions; } } return Collections.emptyList(); } @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 getTransactionsPerSku() throws Exception { transactions.add(mock(Transaction.class)); transactions.add(mock(Transaction.class)); transactions.add(mock(Transaction.class)); assertEquals(3, repoUnderTest.getTransactionsPerSku(MY_PATH, SKU).size()); }