PathStore { public String[] getPaths() { Set<Node> endPoints = mRoot.getEndPoints(); String[] result = new String[endPoints.size()]; int index = 0; for (Node node : endPoints) { result[index] = node.getPath(); index++; } return result; }  String[] getPaths(); void clearAdded(); BaseExplorerElement.AddState getAddState(String path, int siblingsCount); void add(String path); void remove(String path, List<BaseExplorerElement> siblings); boolean isEmpty();  }
@Test public void getPaths() throws Exception { PathStore store = new PathStore(); assertEquals("Expected one element length if nothing added", 1, store.getPaths().length); assertEquals("Expected empty", true, store.isEmpty()); store.add("1"); assertEquals(1, store.getPaths().length); assertEquals("Expected not empty", false, store.isEmpty()); store.add("2"); assertEquals(2, store.getPaths().length); assertEquals("Expected not empty", false, store.isEmpty()); store.add("1" + SEPARATOR + "2"); assertEquals(2, store.getPaths().length); assertEquals("Expected not empty", false, store.isEmpty()); }