### Question:
CaptionBuilder { public Caption build() { return new Caption(this); } CaptionBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes); Caption build();  }### Answer:
@Test public void buildTest() throws SAXException { GraphicAdapter graphicAdapter = new DummyGraphicAdapter(); AttributesImpl attributesImpl = new AttributesImpl(); attributesImpl.addAttribute(null, null, CaptionBuilder.DY, null, String.valueOf(DY)); attributesImpl.addAttribute(null, null, CaptionBuilder.FONT_SIZE, null, String.valueOf(FONT_SIZE)); attributesImpl.addAttribute(null, null, CaptionBuilder.K, null, K); CaptionBuilder captionBuilder = new CaptionBuilder(graphicAdapter, "caption", attributesImpl); Assert.assertEquals(DY, captionBuilder.dy, 0); Assert.assertEquals(FONT_SIZE, captionBuilder.fontSize, 0); Assert.assertEquals(TextKey.getInstance(K), captionBuilder.textKey); Assert.assertNotNull(captionBuilder.build()); }