### Question:
DdlInfoFileImpl implements DdlInfoFile { public int getNextVersionNo() { return getNextVersionNoInternal(); } DdlInfoFileImpl(File file); int getCurrentVersionNo(); int getNextVersionNo(); void applyNextVersionNo(String comment);  }### Answer:
@Test public void testGetNextVersion_maxVersionNo() throws Exception { String path = getClass().getName().replace('.', '/') + "_maxVersion.txt"; File file = ResourceUtil.getResourceAsFile(path); DdlInfoFileImpl ddlInfoFile = new DdlInfoFileImpl(file); try { ddlInfoFile.getNextVersionNo(); fail(); } catch (NextVersionExceededRuntimeException expected) { } }