### Question:
ClouderaAPIUtil { public static boolean isFileInputOutputComponent(String componentName) { for (String prefix : FILE_INPUT_OUTPUT_COMPONENT_PREFIXS) { if (componentName.toLowerCase().startsWith(prefix.toLowerCase())) { return true; } } return false; }  static boolean isFileInputOutputComponent(String componentName); static String getDatasetName(String path); static NavigatorNode retrieveNavigatorNode(String name, List<NavigatorNode> navigatorNodes); static Boolean isFieldinComponent(String componentName, String fieldName, List<NavigatorNode> navigatorNodes); static String extractNavigatorURL(String navigatorUrl); static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS; }### Answer:
@Test public void TestClouderaAPIUtil() { for (String myAllowedPrefix : ClouderaAPIUtil.FILE_INPUT_OUTPUT_COMPONENT_PREFIXS) { assertTrue(ClouderaAPIUtil.isFileInputOutputComponent(myAllowedPrefix)); assertTrue(ClouderaAPIUtil.isFileInputOutputComponent(myAllowedPrefix + "_")); assertTrue(ClouderaAPIUtil.isFileInputOutputComponent(myAllowedPrefix.toUpperCase() + "_")); assertFalse(ClouderaAPIUtil.isFileInputOutputComponent("nope_" + myAllowedPrefix.toUpperCase() + "_")); } }