/** test if the action name is ERROR */
  @Test
  public void testErrorActionNameConstructor() {
    String name = LocalStateResult.ERROR;
    String lastState = "lastState";
    String lastAction = "lastAction";
    String lastErrorMessage = "lastErrorMessage";

    LocalStateResult temp =
        new LocalStateResult(
            new DataSource("shortName", "cloneString", RepoKind.HG, false, "parent"),
            name,
            lastState,
            lastAction,
            lastErrorMessage);

    assertTrue("Error name", temp.getName().equals("ERROR"));
    assertNull("action with error name", temp.getAction());
  }
 /** test getName */
 @Test
 public void testGetName() {
   assertTrue("name", localState.getName().equals(LocalStateResult.TEST));
 }