assertEquals("http://res.cloudinary.com/test123/image/upload/h_100,l_text:hello,w_100/test", result);
}
@Test
public void testUnderlay() {
Transformation transformation = new Transformation().underlay("text:hello");
String result = cloudinary.url().transformation(transformation).generate("test");
assertEquals("http://res.cloudinary.com/test123/image/upload/u_text:hello/test", result);
// should not pass width/height to html if underlay
transformation = new Transformation().underlay("text:hello").width(100).height(100);
result = cloudinary.url().transformation(transformation).generate("test");
assertNull(transformation.getHtmlHeight());
assertNull(transformation.getHtmlWidth());
assertEquals("http://res.cloudinary.com/test123/image/upload/h_100,u_text:hello,w_100/test", result);
}