YamlUtils { public static ChatAlyticsConfig readChatAlyticsConfig(String resource) { return readYamlFromResource(resource, ChatAlyticsConfig.class); }  static T readYamlFromString(String yamlStr, Class<T> clazz); static ChatAlyticsConfig readChatAlyticsConfigFromString(String yamlStr); static String writeYaml(T value); static T readYamlFromResource(String resource, Class<T> clazz); static ChatAlyticsConfig readChatAlyticsConfig(String resource);  }
@Test(expected = MissingConfigException.class) public void testReadYamlFromResource_missingResource() { YamlUtils.readChatAlyticsConfig("missing-resource"); }
@Test(expected = ConstructorException.class) public void testReadYamlFromResource_badResource() { YamlUtils.readChatAlyticsConfig("config/bad-config.yaml"); }