CookbookUtils { public static boolean isFlagType(String flag) { return "flag".equals(flag); }  static boolean isPrimitiveType(String type); static boolean isFlagType(String flag); static boolean isKnownType(Cookbook cookbook, String type); static boolean isEnumType(Cookbook cookbook, String name); static boolean enumHasValue(Cookbook cookbook, String enumName, String value); static boolean isPrimitiveType(Type type); static boolean isNonPrimitive(String type, Cookbook cookbook); static Set<String> getNonPrimitiveTypes(Ingredient ingredient, Cookbook cookbook); static String getBaseType(String type, Cookbook cookbook); static ParamType parseType(String type, Cookbook cookbook);  }
@Test public void testIsFlagType_flag() { assertTrue(CookbookUtils.isFlagType("flag")); }
@Test public void testIsFlagType_notFlag() { assertFalse(CookbookUtils.isFlagType("foobar")); }