@Test(expected=Exception.class)
public void testBadlyNestedBlockContentsRaiseError() throws Exception {

    String simpleText = "set Command {{foo}";
    String contents = XviImporter.getBlockContents(simpleText, "set Command");
    Assert.assertEquals("{foo}", contents);
}