### Question:
JpaConverter { public static JpaConverter getInstance() { if(instance == null) { throw new IllegalStateException("Conversion factory not set by the Spring context"); } return instance; } @Autowired  JpaConverter(List<ModelConverter> converters); @SuppressWarnings("unchecked") T convert(S source, Class<S> clazz); @SuppressWarnings("unchecked") ModelConverter<S, T> getConverter(Class<S> clazz); static JpaConverter getInstance();  }### Answer:
@Test(expected=IllegalStateException.class) public void noInstance() { JpaConverter.getInstance(); }