@Test
public void testIsValidNameValidInBaseFs() throws Exception {

  AbstractFileSystem baseFs = Mockito.spy(fc.getDefaultFileSystem());
  ChRootedFs chRootedFs = new ChRootedFs(baseFs, new Path("/chroot"));
  Mockito.doReturn(true).when(baseFs).isValidName(Mockito.anyString());
  Assert.assertTrue(chRootedFs.isValidName("/test"));
  Mockito.verify(baseFs).isValidName("/chroot/test");
}