* Tests whether a defaults handler for a child source with a class restriction can be registered.
*/
@Test
public void testRegisterChildDefaultsHandlerWithStartClass()
{
DefaultParametersManager manager = EasyMock.createMock(DefaultParametersManager.class);
DefaultParametersHandler<BuilderParameters> handler = createDefaultsHandlerMock();
manager.registerDefaultsHandler(BuilderParameters.class, handler, FileBasedBuilderParameters.class);
EasyMock.replay(manager, handler);
CombinedBuilderParametersImpl params = new CombinedBuilderParametersImpl();
params.setChildDefaultParametersManager(manager);
assertSame("Wrong result", params, params.registerChildDefaultsHandler(BuilderParameters.class, handler, FileBasedBuilderParameters.class));
EasyMock.verify(manager);