@Test
	@SuppressWarnings("unchecked")
	public void customKryoCRegistrars() {


		Map<String, AbstractKryoRegistrar> kryoRegistrarMap = context.getParent().getBeansOfType(AbstractKryoRegistrar
				.class);
		// Two default, two custom (see META-INF/spring-xd/bus/ext/custom-types.xml
		// and spring.xd.bus.ext.CustomKryoRegistarConfig
		assertEquals(4, kryoRegistrarMap.size());

		AbstractKryoRegistrar registrar = context.getBean(KryoClassListRegistrar.class);
		assertEquals(2,registrar.getRegistrations().size());
		List<Class<?>> classes = Arrays.asList(new Class<?>[] {Foo.class, Bar.class});
		for (Registration registration: registrar.getRegistrations()) {
			assertTrue(classes.contains(registration.getType()));
		}

		PojoCodec pojoCodec = context.getBean("codec", PojoCodec.class);

		CompositeKryoRegistrar compositeKryoRegistrar = (CompositeKryoRegistrar) TestUtils.getPropertyValue(pojoCodec,
				"kryoRegistrar");
		List<Registration> registrations = compositeKryoRegistrar.getRegistrations();
		//3 from default + 3 from extended
		List<Class<?>> allClasses = Arrays.asList(new Class<?>[] {Foo.class, Bar.class, CustomKryoRegistrarConfig
				.MyObject.class, DefaultTuple.class, ArrayList.class, File.class});

		assertEquals(allClasses.size(), registrations.size());
		for (Registration registration:registrations) {
			assertTrue(allClasses.contains(registration.getType()));
		}

	}
/*.*", resolvedLocations[0]);

		beanDefinitionProvider = new TestResourceBeanDefinitionProvider("classpath*:foo/");
		resolvedLocations = beanDefinitionProvider.resolveLocations();
		assertEquals("classpath*:foo/*
spring-xd-dirt/src/test/java/org/springframework/xd/extensions/ExtensionsTests.java