verify(activeDashboardDao, never()).insert(any(ActiveDashboardDto.class));
}
@Test
public void shouldCreateDtoFromExtension() {
Dashboard dashboard = Dashboard.create()
.setGlobal(true)
.setLayout(DashboardLayout.TWO_COLUMNS_30_70);
Dashboard.Widget widget = dashboard.addWidget("fake-widget", 1);
widget.setProperty("fake-property", "fake_metric");
when(fakeDashboardTemplate.createDashboard()).thenReturn(dashboard);
DashboardDto dto = task.createDtoFromExtension("Fake", fakeDashboardTemplate.createDashboard());
assertThat(dto.getUserId()).isNull();