@Test
public void testNewInstance() {

	// Arrange
	final AbstractReportConfig reportConfig = mock(AbstractReportConfig.class);
	when(reportConfig.getReportImageResolver()).thenReturn(
			Optional.of(reportImageResolver));
	// Act
	final SetImageMappingsTask newInstance = SetImageMappingsTask
			.newInstance(reportConfig);
	// Assert
	@SuppressWarnings("unchecked")
	final Supplier<ReportImageResolver> field = (Supplier<ReportImageResolver>) ReflectionTestUtils
			.getField(newInstance, "reportImageResolverSupplier");
	assertEquals(reportImageResolver, field.get());
}