assertThat(factory.get(BuildConfigurer.class), instanceOf(DefaultBuildConfigurer.class));
assertThat(factory.get(BuildConfigurer.class), sameInstance(factory.get(BuildConfigurer.class)));
}
private ListenerManager expectListenerManagerCreated() {
final ListenerManager listenerManager = new DefaultListenerManager();
context.checking(new Expectations(){{
allowing(parent).get(ListenerManager.class);
ListenerManager parent = context.mock(ListenerManager.class);
will(returnValue(parent));
one(parent).createChild();