@Test
public void testNegativeConstuctorWrongParam() throws ConfigurationException {

    InputStream stream = getClass().getClassLoader().getResourceAsStream("failing-param-sejda-config.xml");
    expected.expectMessage(
            "The configured class java.lang.String is not a subtype of interface org.sejda.model.parameter.base.TaskParameters");
    when(provider.getConfigurationStream()).thenReturn(stream);
    XmlConfigurationStrategy.newInstance(provider);
}