### Question:
PathsHelper { public static String generatePath(ResourceType resourceType, RxDocumentServiceRequest request, boolean isFeed) { if (request.getIsNameBased()) { return PathsHelper.generatePathForNameBased(resourceType, request.getResourceAddress(), isFeed); } else { return PathsHelper.generatePath(resourceType, request.getResourceId(), isFeed); } }  static String generatePath(ResourceType resourceType, RxDocumentServiceRequest request, boolean isFeed); static String generatePathForNameBased(Resource resourceType, String resourceOwnerFullName, String resourceName); static String generatePath(ResourceType resourceType, String ownerOrResourceId, boolean isFeed); static PathInfo parsePathSegments(String resourceUrl); static boolean tryParsePathSegments(String resourceUrl, PathInfo pathInfo, String clientVersion); static PathInfo parseNameSegments(String resourceUrl, String[] segments); static String generatePathForNameBased(ResourceType resourceType, String resourceOwnerFullName, String resourceName); static String getCollectionPath(String resourceFullName); static String getDatabasePath(String resourceFullName); static String getParentByIndex(String resourceFullName, int segmentIndex); static boolean isNameBased(String resourceIdOrFullName); static ResourceType getResourcePathSegment(String resourcePathSegment); static String getResourcePath(ResourceType resourceType); static boolean validateResourceFullName(ResourceType resourceType, String resourceFullName); static boolean validateResourceId(ResourceType resourceType, String resourceId); static boolean validateDatabaseId(String resourceIdString); static boolean validateDocumentCollectionId(String resourceIdString); static boolean validateDocumentId(String resourceIdString); static boolean validateConflictId(String resourceIdString); static boolean validateAttachmentId(String resourceIdString); static boolean validatePermissionId(String resourceIdString); static boolean validateStoredProcedureId(String resourceIdString); static boolean validateTriggerId(String resourceIdString); static boolean validateUserDefinedFunctionId(String resourceIdString); static boolean validateUserId(String resourceIdString); static boolean isPublicResource(Resource resourceType);  }### Answer:
@Test(groups = {"unit"}) public void generatePathAtDBLevel() { RxDocumentServiceRequest rxDocumentServiceRequest = RxDocumentServiceRequest.create(OperationType.Read, ResourceType.DatabaseAccount); String path = PathsHelper.generatePath(ResourceType.DatabaseAccount, rxDocumentServiceRequest, rxDocumentServiceRequest.isFeed); assertThat(path).isEqualTo(Paths.DATABASE_ACCOUNT_PATH_SEGMENT + "/"); rxDocumentServiceRequest = RxDocumentServiceRequest.create(OperationType.Create, ResourceType.Database); path = PathsHelper.generatePath(ResourceType.Database, rxDocumentServiceRequest, rxDocumentServiceRequest.isFeed); assertThat(path).isEqualTo(Paths.DATABASES_PATH_SEGMENT + "/"); }