VersionHistoryFacade extends NodeFacade<VersionHistory, S> implements VersionHistory { @Override public void removeVersionLabel(String label) throws RepositoryException { throw new ListenerReadOnlyException(); } VersionHistoryFacade(final @NotNull VersionHistory delegate, final @NotNull SessionFacade<S> session); @SuppressWarnings("deprecation") @Override String getVersionableUUID(); @Override String getVersionableIdentifier(); @Override boolean hasVersionLabel(String label); @Override boolean hasVersionLabel(Version version, String label); @Override String[] getVersionLabels(); @Override String[] getVersionLabels(Version version); @Override Version getRootVersion(); @Override VersionIterator getAllLinearVersions(); @Override VersionIterator getAllVersions(); @Override NodeIterator getAllLinearFrozenNodes(); @Override NodeIterator getAllFrozenNodes(); @Override Version getVersion(String versionName); @Override Version getVersionByLabel(String label); @Override void addVersionLabel(String versionName, String label, boolean moveLabel); @Override void removeVersionLabel(String label); @Override void removeVersion(String versionName);  }
@Test(expected = ListenerReadOnlyException.class) public void testRORemoveVersionLabel() throws Exception { VersionHistory delegate = mock(VersionHistory.class); VersionHistoryFacade<Session> facade = getFacade(delegate); facade.removeVersionLabel(""); }