public void testCourseDetails() {
    Course course = CourseContainer.instance().get(0);
    course.exams = SimpleMockCrawler.createExams(course);

    solo.clickOnText("Course #0");

    assertEquals(course.name, ((TextView) solo.getView(R.id.course_name, 0)).getText());

    View exam_view;

    exam_view = solo.getView(R.id.exam_item, 0);
    assertEquals("Course #0", ((TextView) exam_view.findViewById(R.id.course_text)).getText());

    solo.goBack();
  }
 private void populateCourseList() {
   CourseContainer.instance().clear();
   for (int i = 0; i < 9; i++) {
     Course course = new Course();
     course.name = "Course #" + i;
     course.lecturer = "Our leader";
     course.number = "course." + i;
     course.term = "SS";
     course.type = "VO";
     CourseContainer.instance().add(course);
   }
 }