@Test
public void shouldThrowInstantiationExceptionCauseIfThereIsSuchException() {

when(context.getInitParameter(BasicConfiguration.CONTAINER_PROVIDER))
	.thenReturn(DogProvider.class.getName());
try {
	config.getProvider();
	fail();
} catch (ServletException e) {
	assertNotNull("Should have a cause", e.getRootCause());
	assertEquals(IOException.class, e.getRootCause().getClass());
}
}