/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.commons.codec.language;

import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.StringEncoder;
import org.apache.commons.codec.StringEncoderAbstractTest;

/**
 * @author Apache Software Foundation
 * @version $Id$
 */
public class CaverphoneTest extends StringEncoderAbstractTest {

    public CaverphoneTest(String name) {
        super(name);
    }

    protected StringEncoder createEncoder() {
        return new Caverphone();
    }

    public void testSpecificationExamples() throws EncoderException {
        String[][] data = {
            {"Peter", "PTA1111111"},
            {"ready", "RTA1111111"},
            {"social", "SSA1111111"},
            {"able", "APA1111111"},
            {"Tedder", "TTA1111111"},
            {"Karleen", "KLN1111111"},
            {"Dyun", "TN11111111"},};
        this.checkEncodings(data);
    }

    // Caverphone Revisited
    public void testIsCaverphoneEquals() {
        Caverphone caverphone = new Caverphone();
        assertFalse("Caverphone encodings should not be equal", caverphone.isCaverphoneEqual("Peter", "Stevenson"));
        assertTrue("Caverphone encodings should be equal", caverphone.isCaverphoneEqual("Peter", "Peady"));
    }

}

@@ -1640,17 +1640,380 @@
 111111%22%7D
-,
+%7D;%0A        this.checkEncodings(data);%0A    %7D%0A%0A    /**%0A     * Tests examples from http://en.wikipedia.org/wiki/Caverphone%0A     * %0A     * @throws EncoderException%0A     */%0A    public void testWikipediaExamples() throws EncoderException %7B%0A        // Is this a bug of a Caverphone 1.0 vs 2.0 issue?%0A        // String%5B%5D%5B%5D data = %7B%7B%22Lee%22, %22L11111%22%7D, %7B%22Thompson%22, %22TMPSN1%22%7D
 %7D;%0A     
@@ -2006,32 +2006,35 @@
 PSN1%22%7D%7D;%0A       
+ //
  this.checkEncod

Add Wikipedia examples (broken)