@Override
    public void run(Namespace namespace, Liquibase liquibase) throws Exception {
        final boolean list = firstNonNull(namespace.getBoolean("list"), false);
        final boolean release = firstNonNull(namespace.getBoolean("release"), false);

        if (list == release) {
            throw new IllegalArgumentException("Must specify either --list or --force-release");
        } else if (list) {
            liquibase.reportLocks(printStream);
        } else {
            liquibase.forceReleaseLocks();
        }
    }
@Test
    void testFailsWhenNoListOrRelease() {
        final Liquibase liquibase = Mockito.mock(Liquibase.class);
        assertThatIllegalArgumentException()
            .isThrownBy(() -> locksCommand.run(new Namespace(Map.of("list", false, "release", false)),
                liquibase))
            .withMessage("Must specify either --list or --force-release");
    }