}
@Test
public void found_edit_block_in_override()
{
Block block = mockBlock();
RequestPageCache cache = mockRequestPageCache();
BeanBlockOverrideSource overrideSource = mockBeanBlockOverrideSource();
String datatype = "MyData";
expect(overrideSource.getEditBlock(datatype)).andReturn(block);
replay();
BeanBlockSource source = new BeanBlockSourceImpl(cache, overrideSource, EMPTY_CONFIGURATION);
Block actual = source.getEditBlock(datatype);
assertSame(actual, block);
verify();
}