IMarker[] markers = workspace.getRoot().findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE);
assertEquals(0, markers.length);
ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType configType = lm.getLaunchConfigurationType(JBehaveLaunchConfiguration.ID_JBEHAVE_APPLICATION);
ConfigurationState state=new ConfigurationState();
state.setProjectName(testProject.getProject().getName());
state.setBehaviorClass("paket1.AClassBehaviour");
state.setBehaviorMethod("shouldAddUp");
ILaunchConfigurationWorkingCopy wc = configType.newInstance(
null, lm.generateUniqueLaunchConfigurationNameFrom(state.getName()));
state.setAttributes(wc);
ILaunchConfiguration config = wc.doSave();
IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
final TextConsole[] console=new TextConsole[1];
manager.addConsoleListener(new IConsoleListener(){