BaseSchemaInfo implements SchemaInfo { @Override public Schema findSchema(final int version) { final Schema[] container = getSchemaContainer(); checkArgument(version >= 0 && version < container.length); return container[version]; }  @Override Schema findSchema(final int version);  }
@Test(expected = IllegalArgumentException.class) public void testFindSchemaInvalidSchemaVersion() { final BaseSchemaInfo baseInfo = Mockito.mock(BaseSchemaInfo.class, Mockito.CALLS_REAL_METHODS); baseInfo.findSchema(0); }