@DataProvider public Object[][] state(){
  return new Object[][]{new Object[]{"OBVIOUSLY_INVALID_EXPERIMENT_STATE",HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_DRAFT,HttpStatus.SC_OK},new Object[]{Constants.EXPERIMENT_STATE_PAUSED,HttpStatus.SC_OK},new Object[]{"OBVIOUSLY_INVALID_EXPERIMENT_STATE",HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_PAUSED,HttpStatus.SC_OK},new Object[]{Constants.EXPERIMENT_STATE_DRAFT,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_RUNNING,HttpStatus.SC_OK},new Object[]{"OBVIOUSLY_INVALID_EXPERIMENT_STATE",HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_RUNNING,HttpStatus.SC_OK},new Object[]{Constants.EXPERIMENT_STATE_DELETED,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_DRAFT,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_PAUSED,HttpStatus.SC_OK},new Object[]{Constants.EXPERIMENT_STATE_DELETED,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_TERMINATED,HttpStatus.SC_OK},new Object[]{"OBVIOUSLY_INVALID_EXPERIMENT_STATE",HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_RUNNING,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_TERMINATED,HttpStatus.SC_OK},new Object[]{Constants.EXPERIMENT_STATE_PAUSED,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_DRAFT,HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_DELETED,HttpStatus.SC_NO_CONTENT},new Object[]{"OBVIOUSLY_INVALID_EXPERIMENT_STATE",HttpStatus.SC_BAD_REQUEST},new Object[]{Constants.EXPERIMENT_STATE_DELETED,HttpStatus.SC_NOT_FOUND},new Object[]{Constants.EXPERIMENT_STATE_RUNNING,HttpStatus.SC_NOT_FOUND},new Object[]{Constants.EXPERIMENT_STATE_PAUSED,HttpStatus.SC_NOT_FOUND},new Object[]{Constants.EXPERIMENT_STATE_DRAFT,HttpStatus.SC_NOT_FOUND},new Object[]{Constants.EXPERIMENT_STATE_TERMINATED,HttpStatus.SC_NOT_FOUND}};
}

@ DataProvider public Object [ ] [ ] state ( ) { return new Object [ ] [ ] { new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_OK } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_OK } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_TERMINATED , HttpStatus . SC_OK } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_TERMINATED , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_NO_CONTENT } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_TERMINATED , HttpStatus . SC_NOT_FOUND } } ; }
cycles through experiment states and the expected status codes .
