### Question:
HstUtils { public static Set<Node> getHstMounts(final PluginContext context) { final Session session = context.createSession(); try { final Workspace workspace = session.getWorkspace(); final QueryManager queryManager = workspace.getQueryManager(); final Query query = queryManager.createQuery(" final QueryResult queryResult = query.execute(); final NodeIterator nodes = queryResult.getNodes(); final Set<Node> retVal = new HashSet<>(); while (nodes.hasNext()) { final Node node = nodes.nextNode(); retVal.add(node); } return retVal; } catch (InvalidQueryException e) { log.error("Error creating query", e); } catch (RepositoryException e) { log.error("Error fetching hst:host nodes", e); } finally { GlobalUtils.cleanupSession(session); } return Collections.emptySet(); } private  HstUtils(); static Set<Node> getHstMounts(final PluginContext context); static void erasePreview(final PluginContext context);  }### Answer:
@Test public void testGetHstMounts() throws Exception { final Set<Node> hstMounts = HstUtils.getHstMounts(getContext()); assertEquals("expected 3 mounts, hst:root and 2 added by us", 3, hstMounts.size()); }