// Path: heroku-api/src/main/java/com/heroku/api/http/HttpUtil.java
// public static String encodeIncludingSpecialCharacters(String toEncode) {
//     String encoded = urlencode(toEncode, "Unable to urlencode " + toEncode);
//     for (Map.Entry<String, String> s : specialChars.entrySet()) {
//         encoded = encoded.replace(s.getKey(), s.getValue());
//     }
//     return encoded;
// }


import org.testng.annotations.Test;
import static com.heroku.api.http.HttpUtil.encodeIncludingSpecialCharacters;
import static org.testng.Assert.assertEquals;
package com.heroku.api.http;



/**
 * Tests for http related utility methods.
 *
 * @author Naaman Newbold
 */
public class HttpUtilTest {

    @Test
    public void encodeParametersIncludingSpecialCharactersShouldEncodePeriodDashAsteriskAndUnderscore() {
// Path: heroku-api/src/main/java/com/heroku/api/http/HttpUtil.java
// public static String encodeIncludingSpecialCharacters(String toEncode) {
//     String encoded = urlencode(toEncode, "Unable to urlencode " + toEncode);
//     for (Map.Entry<String, String> s : specialChars.entrySet()) {
//         encoded = encoded.replace(s.getKey(), s.getValue());
//     }
//     return encoded;
// }


// Path: heroku-api/src/test/java/com/heroku/api/http/HttpUtilTest.java
import org.testng.annotations.Test;
import static com.heroku.api.http.HttpUtil.encodeIncludingSpecialCharacters;
import static org.testng.Assert.assertEquals;

package com.heroku.api.http;



/**
 * Tests for http related utility methods.
 *
 * @author Naaman Newbold
 */
public class HttpUtilTest {

    @Test
    public void encodeParametersIncludingSpecialCharactersShouldEncodePeriodDashAsteriskAndUnderscore() {
        assertEquals("%2e%2d%2a%5f", encodeIncludingSpecialCharacters(".-*_"));