String testCaseFileEncoding = UniversalDetectorUtil.getDetectedEncoding(EclipseIFileUtil
.getInputStreamFrom(testCaseFile));
String currentTestCodeString = IOUtil.readAsString(EclipseIFileUtil
.getInputStreamFrom(testCaseFile), testCaseFileEncoding);
CurrentLineBreak currentLineBreak = CurrentLineBreakDetector.detect(currentTestCodeString);
LineBreakProvider lineBreakProvider = new LineBreakProvider(config, currentLineBreak);
TestCaseGenerator generator = TestCaseGeneratorFactory.create(config, lineBreakProvider);
String newTestCodeString = generator.initialize(targetClassMeta)
.getTestCaseSourceCodeWithLackingTestMethod(currentTestCodeString);
// ----------------------------------------