### Question:
ScreenshotDiv { public String getPayloadString() { return String.format(TEMPLATE, id, id, id, format, base64screenshot); }  String getId(); void setId(String id); String getBase64screenshot(); void setBase64screenshot(String base64screenshot); String getFormat(); void setFormat(String format); String getPayloadString(); static final String DEFAULT_SAKULI_SCREENSHOT_DIV_ID; static final String STYLE_TEMPLATE; }### Answer:
@Test public void testGetPayloadString() throws Exception { ScreenshotDiv testling = new ScreenshotDiv(); testling.setId("test-id"); testling.setFormat("jpg"); testling.setBase64screenshot("00001111"); assertEquals(testling.getPayloadString(), "<div id=\"test-id\">" + "<div id=\"openModal_test-id\" class=\"modalDialog\">" + "<a href=\"#close\" title=\"Close\" class=\"close\">Close X</a>" + "<a href=\"#openModal_test-id\"><img class=\"screenshot\" src=\"data:image/jpg;base64,00001111\" ></a>" + "</div>" + "</div>"); }