@Test
public void testLoadNodeBeanForBasicFlow() throws Exception {

  final NodeBeanLoader loader = new NodeBeanLoader();
  final NodeBean nodeBean = loader.load(ExecutionsTestUtil.getFlowFile(
      BASIC_FLOW_YML_TEST_DIR, BASIC_FLOW_YML_FILE));
  validateNodeBean(nodeBean, BASIC_FLOW_NAME, Constants.FLOW_NODE_TYPE, FLOW_CONFIG_KEY,
      FLOW_CONFIG_VALUE, 4, null);
  validateNodeBean(nodeBean.getNodes().get(0), SHELL_END, TYPE_NOOP, null,
      null, 0, Arrays.asList(SHELL_PWD, SHELL_ECHO, SHELL_BASH));
  validateNodeBean(nodeBean.getNodes().get(1), SHELL_ECHO, TYPE_COMMAND, TYPE_COMMAND,
      ECHO_COMMAND, 0, null);
}