@Override
    public void protocolCommandSent(final ProtocolCommandEvent event) {
        final String message = StringUtils.chomp(event.getMessage());
        if(message.startsWith(FTPCmd.PASS.name())) {
            this.log(Type.request, String.format("%s %s", FTPCmd.PASS.name(),
                    StringUtils.repeat("*", StringUtils.length(StringUtils.removeStart(message, FTPCmd.PASS.name())))));
        }
        else {
            this.log(Type.request, message);
        }
    }
@Test
    public void testEmptyCommand() {
        final LoggingProtocolCommandListener listener = new LoggingProtocolCommandListener(new TranscriptListener() {
            @Override
            public void log(final Type request, final String message) {
                assertEquals("PASS *", message);
            }
        });
        listener.protocolCommandSent(new ProtocolCommandEvent(this, FTPCmd.PASS.name(), "PASS "));
    }