### Question:
WorkflowPackageManagerImpl implements WorkflowPackageManager { public final List<String> getPaths(final ResourceResolver resourceResolver, final String path) throws RepositoryException { return getPaths(resourceResolver,path, workflowPackageTypes); }  final Page create(final ResourceResolver resourceResolver,
                             final String name, final String... paths); final Page create(final ResourceResolver resourceResolver, String bucketSegment,
                             final String name, final String... paths); final List<String> getPaths(final ResourceResolver resourceResolver,
                                       final String path); final List<String> getPaths(final ResourceResolver resourceResolver,
                                       final String path, final String[] nodeTypes); final void delete(final ResourceResolver resourceResolver, final String path); final boolean isWorkflowPackage(final ResourceResolver resourceResolver, final String path); @Property(label = "Workflow Package Types",
            description = "Node Types allowed by the WF Package. Default: cq:Page, cq:PageContent, dam:Asset",
            value = { "cq:Page", "cq:PageContent", "dam:Asset" })
    static final String PROP_WF_PACKAGE_TYPES; }### Answer:
@Test public void testGetPaths() throws Exception { doReturn(testResourceCollection).when(wpm).getResourceCollection(workflowPackageNode); final String[] expected = PAYLOAD_PATHS; List<String> paths = wpm.getPaths(resourceResolver, WORKFLOW_PACKAGE_PATH); final String[] actual = paths.toArray(new String[0]); assertArrayEquals(expected, actual); }
@Test public void testGetPaths_NormalPage() throws Exception { final String[] expected = new String[]{}; List<String> paths = wpm.getPaths(resourceResolver, NORMAL_PAGE_PATH); final String[] actual = paths.toArray(new String[0]); assertArrayEquals(expected, actual); }