class CommandExpectationGroup {

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer();

        if (maskCommands) {
            if (maskedCommands == null) {
                maskedCommands = new ArrayList<String>(commands.size());
                for (int idx = 0; idx < commands.size(); idx++) {
                    maskedCommands.add("********");
                }
            }
            sb.append(maskedCommands).append(expectations);
        } else {
            sb.append(commands).append(expectations);
        }

        return sb.toString();
    }

    public  CommandExpectationGroup();
    protected  CommandExpectationGroup(final boolean maskCommands);

}