testClassName = testClassName.substring(0, pos);
}
if (Character.isLowerCase(testClassName.charAt(0))) {
testClassName = Character.toUpperCase(testClassName.charAt(0)) + testClassName.substring(1);
}
IPath containerPath = path.removeLastSegments(1);
Map<String, String> variables = createVariables(
"namespaceName", containerPath.removeFirstSegments(2).toString().replace('/', '.'),
"testClassName", testClassName
);
file.create(getInitialContents("sample", variables), false, new NullProgressMonitor());