public TestFile file(Object... path) { try { return new TestFile(this, path); } catch (RuntimeException e) { throw new RuntimeException( String.format( "Could not locate file '%s' relative to '%s'.", Arrays.toString(path), this), e); } }