NodeBeanLoader { public String getFlowName(final File flowFile) { checkArgument(flowFile != null && flowFile.exists()); checkArgument(flowFile.getName().endsWith(Constants.FLOW_FILE_SUFFIX)); return Files.getNameWithoutExtension(flowFile.getName()); }  NodeBean load(final File flowFile); boolean validate(final NodeBean nodeBean); AzkabanNode toAzkabanNode(final NodeBean nodeBean); FlowTrigger toFlowTrigger(final FlowTriggerBean flowTriggerBean); String getFlowName(final File flowFile);  }
@Test public void testGetFlowName() { assertThat(new NodeBeanLoader().getFlowName(ExecutionsTestUtil.getFlowFile( BASIC_FLOW_YML_TEST_DIR, BASIC_FLOW_YML_FILE))).isEqualTo(BASIC_FLOW_NAME); }