/** test if the name of action is not in the list of actions */
  @Test
  public void testStrangeActionName() {
    String name = "abc";
    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);
    assertNull("strange action", temp.getAction());
  }
  /** 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 getAction method */
 @Test
 public void testGetAction() {
   assertTrue("Action", localState.getAction().equals(""));
 }