/** Test run one Test successfully. */
  @Test
  public void testRunsSuccessfully() {
    TestProtocolService protocolService = new TestProtocolService();
    TestCase testCase = new TestCase();
    testCase.setName("TestCase1");
    protocolService.set(testCase, new TestResult());

    TestResult testResult = protocolService.get(testCase);

    assertNotNull(testResult);
    assertTrue(!testResult.isSuccessfully());
  }
  /** Test run one Test not successfully. */
  @Test
  public void testRunsNotSuccessfully() {
    TestProtocolService protocolService = new TestProtocolService();
    TestResult testResult = new TestResult();
    testResult.setException(0);
    testResult.setIgnored(0);
    testResult.setRight(0);
    testResult.setWrong(1);

    TestCase testCase = new TestCase();
    testCase.setName("TestCase2");
    protocolService.set(testCase, testResult);

    testResult = protocolService.get(testCase);

    assertNotNull(testResult);
    assertFalse(testResult.isSuccessfully());
  }