### Question:
DataModelerServiceHelper { public Path calculateFilePath(final String className, final Path javaPath) { PortablePreconditions.checkNotNull("className", className); PortablePreconditions.checkNotNull("javaPath", javaPath); String pathUri = className; if (className.contains(".")) { pathUri = className.replace(".", "/"); } return javaPath.resolve(pathUri + ".java"); } DataModelerServiceHelper(); @Inject  DataModelerServiceHelper(final KieModuleService moduleService,
                                    final @Named("ioStrategy") IOService ioService,
                                    final CommentedOptionFactory commentedOptionFactory); List<DataModelerError> toDataModelerError(List<DriverError> errors); List<DataModelerError> toDataModelerError(final List<SyntaxError> syntaxErrors,
                                                     final Path file); List<ValidationMessage> toValidationMessage(final List<DataModelerError> errors); CommentedOption makeCommentedOption(final String commitMessage); Package ensurePackageStructure(final Module module,
                                          final String packageName); Set<String> resolvePackages(final Module project); String calculateClassName(final Module module,
                                     final org.uberfire.backend.vfs.Path path); Path calculateFilePath(final String className,
                                  final Path javaPath);  }### Answer:
@Test public void testCalculateFilePath() { org.uberfire.java.nio.file.Path javaPath = testRootPath; String className = "PojoWithNoPackage背景色"; String expectedFile = testRootPath.toString() + "/PojoWithNoPackage背景色.java"; org.uberfire.java.nio.file.Path result = serviceHelper.calculateFilePath(className, javaPath); assertEquals(expectedFile, result.toString()); className = "com.myspace.PojoWithPackage背景色"; expectedFile = testRootPath.toString() + "/com/myspace/PojoWithPackage背景色.java"; result = serviceHelper.calculateFilePath(className, javaPath); assertEquals(expectedFile, result.toString()); }