@Test
  public void testTrue() {
    final IMocksControl mocksControl = EasyMock.createControl();
    final Issue issue = mocksControl.createMock(Issue.class);

    expect(issue.isSubTask()).andReturn(true);

    final AbstractIssueCondition condition = new IsSubTaskCondition();

    mocksControl.replay();
    assertTrue(condition.shouldDisplay(null, issue, null));
    mocksControl.verify();
  }
  @Test
  public void testFalse() {
    final IMocksControl mocksControl = EasyMock.createControl();
    final Issue issue = mocksControl.createMock(Issue.class);

    final User fred = new MockUser("fred");

    expect(issue.isSubTask()).andReturn(false);

    final AbstractIssueCondition condition = new IsSubTaskCondition();

    mocksControl.replay();
    assertFalse(condition.shouldDisplay(fred, issue, null));
    mocksControl.verify();
  }