@Test public void getFile() { when(path.segmentCount()).thenReturn(2); IFile file = container.getFile(path); assertNotNull(file); }
@Test(expected = IllegalArgumentException.class) public void getFileWithPathWithLessThanTwoSegmentsShouldThrowException() { container.getFile(path); }