@Test
 public void testResponse_videoAd() {
   OpenRtb.BidRequest request =
       TestUtil.newBidRequest(TestData.newRequest(0, false, false).setVideo(TestData.newVideo(0)));
   Bid bid = TestData.newBid(false).setAdm("http://my-video").setCrid("creativeId").build();
   NetworkBid.BidResponse.Ad.Builder ad = mapper.mapResponseAd(request, bid);
   assertThat(ad).isNotNull();
   assertThat(ad.getVideoUrl()).isEqualTo("http://my-video");
   assertThat(ad.getBuyerCreativeId()).isEqualTo("creativeId");
   assertThat(ad.hasHtmlSnippet()).isFalse();
 }
 @Test
 public void testResponse_htmlSnippetAd() {
   OpenRtb.BidRequest request = TestUtil.newBidRequest(TestData.newRequest());
   Bid bid =
       TestData.newBid(false)
           .setAdid("adId")
           .setCrid("creativeId")
           .setAdm("<img src=\"foo\">")
           .build();
   NetworkBid.BidResponse.Ad.Builder ad = mapper.mapResponseAd(request, bid);
   assertThat(ad).isNotNull();
   assertThat(ad.getHtmlSnippet()).isEqualTo("<img src=\"foo\">");
   assertThat(ad.getBuyerCreativeId()).isEqualTo("creativeId");
   assertThat(ad.hasVideoUrl()).isFalse();
 }