PathStore { public void clearAdded() { mRoot = new Node(null); }  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 clearAdded() 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("Expected not empty", false, store.isEmpty()); store.clearAdded(); assertEquals("Expected one element length if nothing added", 1, store.getPaths().length); assertEquals("Expected empty", true, store.isEmpty()); }