    1   package org.seasar.cubby.internal.util;
    2
    3   import static org.junit.Assert.assertEquals;
    4
    5   import org.junit.Test;
    6
    7   public class URLBodyEncoderTest {
    8
    9   	@Test
    10  	public void encode() throws Exception {
    11  		assertEquals("abc%20%E3%81%82%E3%81%84%E3%81%86", URLBodyEncoder
    12  				.encode("abc あいう", "UTF-8"));
    13  		assertEquals("abc%20%82%A0%82%A2%82%A4", URLBodyEncoder.encode(
    14  				"abc あいう", "Windows-31J"));
    15  	}
    16
    17  }