UserFacade extends AuthorizableFacade<User> implements User { @Override public void disable(final String reason) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  UserFacade(final @NotNull User delegate); @Override boolean isAdmin(); @Override boolean isSystemUser(); @Override Credentials getCredentials(); @Override Impersonation getImpersonation(); @Override boolean isDisabled(); @Override String getDisabledReason(); @Override void disable(final String reason); @Override void changePassword(final String password); @Override void changePassword(final String password, final String oldPassword);  }
@Test(expected = ListenerReadOnlyException.class) public void testRODisable() throws Exception { User delegate = mock(User.class); UserFacade facade = getFacade(delegate); facade.disable(""); }