ResponseBeanWriter { public void register(Type responseType, BeanClassValidator validator) { Class<?> beanClass = ContextHelper.responseBeanClass(responseType); if (!context.containsKey(beanClass)) { validator.validate(beanClass); context.put(beanClass, new Context<>(beanClass)); } } ResponseBeanWriter(); void register(Type responseType, BeanClassValidator validator); boolean contains(Class<?> beanClass); byte[] toJSON(Object bean);  }
@Test void register() { writer.register(TestBean.class, validator); }