DefaultConverters implements Converters { public void register(Class<? extends Converter<?>> converterClass) { if (!converterClass.isAnnotationPresent(Convert.class)) { throw new VRaptorException("The converter type " + converterClass.getName() + " should have the Convert annotation"); } classes.addFirst(converterClass); } DefaultConverters(Container container); void register(Class<? extends Converter<?>> converterClass); Converter<T> to(Class<T> clazz); boolean existsFor(Class<?> type); boolean existsTwoWayFor(Class<?> type); TwoWayConverter<?> twoWayConverterFor(Class<?> type);  }
@Test(expected = VRaptorException.class) public void convertingANonAnnotatedConverterEndsUpComplaining() { converters.register(WrongConverter.class); }