@Test(expectedExceptions=IllegalStateException.class)
public void testIncludeWithUnsupportedLocation() throws Exception {

    mockLocation.accept(isA(IncludeVisitor.class));
    expectLastCall();
    source.setLocation(mockLocation);
    EasyMockUnitils.replay();
    source.include(
            new Location() {
                @Override
                public String toString() {
                    return "/home/";
                }
            });
}