code: @Deprecated
      @Then("^the command exit status is '(.+?)'$")
      public void checkShellExitStatus(int expectedExitStatus) throws Exception {
          assertThat(commonspec.getCommandExitStatus()).as("Is equal to " + expectedExitStatus + ".").isEqualTo(expectedExitStatus);
      }
docs: Check the exitStatus of previous command execution matches the expected one
  
  @param expectedExitStatus
  @deprecated Success exit status is directly checked in the "execute remote command" method, so this is not
  needed anymore.