public void testGetInterceptorOfType() throws Exception {
DataContext dc = new MockUpdateableDataContext();
InterceptableDataContext interceptor = Interceptors.intercept(dc);
InterceptorList<DataSet> list = interceptor.getDataSetInterceptors();
ConvertedDataSetInterceptor convertedDataSetInterceptor = new ConvertedDataSetInterceptor();
list.add(convertedDataSetInterceptor);
assertSame(convertedDataSetInterceptor, list.getInterceptorOfType(DataSetInterceptor.class));
assertSame(convertedDataSetInterceptor, list.getInterceptorOfType(ConvertedDataSetInterceptor.class));