@Test
  public void should_create_dashboard() {
    dbTester.prepareDbUnit(getClass(), "filters.xml");
    Dashboard dashboard = template.createDashboard();

    assertThat(dashboard.getLayout()).isEqualTo(DashboardLayout.TWO_COLUMNS);
    assertThat(dashboard.getWidgets()).hasSize(5);
  }
 @Test
 public void should_provide_clean_error_message_on_failure() {
   try {
     template.createDashboard();
   } catch (IllegalStateException illegalState) {
     assertThat(illegalState)
         .hasMessage("Could not find a provided issue filter with name 'Unresolved Issues'");
   }
 }
 @Test
 public void should_have_a_name() {
   assertThat(template.getName()).isEqualTo("Issues");
 }