### Question:
EmptyXDOMChecker implements XDOMChecker { @Override public boolean check(List<Block> blocks) { return isContentEmpty(blocks); }  @Override boolean check(List<Block> blocks);  }### Answer:
@Test public void checkWhenSingleMacroMarkerBlock() throws Exception { List<Block> blocks = Collections.singletonList( new MacroMarkerBlock("macro", Collections.emptyMap(), Collections.emptyList(), false)); assertTrue(this.mocker.getComponentUnderTest().check(blocks)); }
@Test public void checkWhenTwoMacroMarkerBlock() throws Exception { List<Block> blocks = Arrays.asList( new MacroMarkerBlock("macro", Collections.emptyMap(), Collections.emptyList(), false), new MacroMarkerBlock("macro2", Collections.emptyMap(), Collections.emptyList(), false) ); assertTrue(this.mocker.getComponentUnderTest().check(blocks)); }
@Test public void checkWhenNoBlock() throws Exception { List<Block> blocks = Collections.emptyList(); assertTrue(this.mocker.getComponentUnderTest().check(blocks)); }