@Override
  public void setUp() throws Exception {
    solo = new Solo(getInstrumentation(), getActivity());

    FlashcardActivityState state = FlashcardActivityState_.getInstance_(solo.getCurrentActivity());
    state.setBox(1);

    DatabaseOpenHelper openHelper = new DatabaseOpenHelper(solo.getCurrentActivity());
    cardDao = openHelper.getDao(Card.class);
    cardDao.queryForAll().size();
    List<List<String>> cards =
        Arrays.asList(
            Arrays.asList("111", "AAA", "1"),
            Arrays.asList("222", "BBB", "1"),
            Arrays.asList("333", "CCC", "1"),
            Arrays.asList("444", "DDD", "1"),
            Arrays.asList("555", "EEE", "1"),
            Arrays.asList("666", "FFF", "2"),
            Arrays.asList("777", "GGG", "2"),
            Arrays.asList("888", "HHH", "3"),
            Arrays.asList("999", "III", "3"));
    for (List<String> card : cards) {
      createCardForTest(card.get(0), card.get(1), Integer.valueOf(card.get(2)));
    }
  }
 public void testRecyclerView() throws Exception {
   solo.clickOnRecyclerChildView(R.id.recycler_view, 0);
   solo.goBack();
   solo.clickOnRecyclerChildView(R.id.recycler_view, 1);
   solo.goBack();
   solo.clickOnRecyclerChildView(R.id.recycler_view, 2);
   solo.goBack();
 }
 public void testNavigation() throws Exception {
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.alphabetical_order_button);
   solo.clickOnView(R.id.alphabetical_order_button);
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.alphabetical_order_button);
   solo.clickOnView(R.id.shuffle_button);
   solo.clickOnView(R.id.alphabetical_order_button);
 }