@Test
 public void testDefaultIssueTypePreselect() {
   jira.gotoLoginPage().login("fred", "fred", DashboardPage.class);
   backdoor.project().setDefaultIssueType(10000, "2");
   JiraHeader header = pageBinder.bind(JiraHeader.class);
   CreateIssueDialog createIssueDialog = header.createIssue();
   assertEquals("New Feature", createIssueDialog.getIssueType());
 }
  @Test
  public void testIssueTypePreselect() {
    // Should select first issue type in list as we have no history
    jira.gotoLoginPage().login("fred", "fred", DashboardPage.class);
    backdoor.project().setDefaultIssueType(10000, null);
    JiraHeader header = pageBinder.bind(JiraHeader.class);

    CreateIssueDialog createIssueDialog = header.createIssue();
    assertEquals("Bug", createIssueDialog.getIssueType());
    createIssueDialog.close();
  }