SimpleMountInfoProvider implements MountInfoProvider { private static Mount defaultMount(Map<String, Mount> mounts) { return new Mounts.DefaultMount(mounts.values()); } SimpleMountInfoProvider(List<Mount> mountInfos); @Override Mount getMountByPath(String path); @Override Collection<Mount> getNonDefaultMounts(); @Override Mount getMountByName(String name); @Override boolean hasNonDefaultMounts(); @Override Collection<Mount> getMountsPlacedUnder(String path); @Override Collection<Mount> getMountsPlacedDirectlyUnder(String path); @Override Mount getDefaultMount();  }
@Test public void defaultMount() throws Exception { MountInfoProvider mip = new SimpleMountInfoProvider(Collections.<Mount>emptyList()); assertNotNull(mip.getMountByPath("/a")); assertTrue(mip.getMountByPath("/a").isDefault()); assertFalse(mip.hasNonDefaultMounts()); }