@Test
public void shouldFailToConfigureWithInvalidSerializerClass()
    throws Exception {

  parameters.put(SERIALIZER, "java.lang.String");
  try {
    Configurables.configure(fixture, new Context(parameters));
  } catch (ClassCastException e) {
    // expected
  }
  parameters.put(SERIALIZER, FakeConfigurable.class.getName());
  try {
    Configurables.configure(fixture, new Context(parameters));
  } catch (IllegalArgumentException e) {
    // expected
  }
}