@Test(expected = IllegalArgumentException.class)
public void throwsExceptionWhenNeitherStringConstructorNorStringValueOfMethodAvailable() throws Exception {

    typeProducerFactory.createTypeProducer(NoStringConstructorNoValueOfClass.class, null);
}