@Test
public void testNoData() {

    DisplayerSettings empty = DisplayerSettingsFactory.newMetricSettings()
            .dataset(EXPENSES)
            .filter(COLUMN_ID, FilterFactory.isNull())
            .column(COLUMN_AMOUNT)
            .title("Title").titleVisible(true)
            .width(300).height(200)
            .margins(10, 20, 30, 40)
            .backgroundColor("FDE8D4")
            .htmlTemplate(HTML_TEMPLATE)
            .buildSettings();
    when(view.getNoDataString()).thenReturn("0,0");
    MetricDisplayer presenter = createMetricDisplayer(empty);
    MetricDisplayer.View view = presenter.getView();
    presenter.draw();
    verify(view, atLeastOnce()).getNoDataString();
    verify(view).setHtml("<div id=\"test_this\" style=\"background-color:#FDE8D4; width:300px; height:200px; " +
            "margin-top:10px; margin-right:40px; margin-bottom:20px; margin-left:30px;\">\n" +
            "  <span>Title</span>\n" +
            "  <span>0,0</span>\n" +
            "</div>");
}