// Path: here-oauth-client/src/main/java/com/here/account/http/HttpConstants.java
// public enum HttpMethods {
//     /**
//      * See <a href="https://tools.ietf.org/html/rfc7231#section-4.3.1">HTTP/1.1 Semantics and Content: GET</a>.
//      */
//     GET("GET"),
//     POST("POST");
//         
//     private final String method;
//         
//     private HttpMethods(String method) {
//         this.method = method;
//     }
//         
//     /**
//      * Returns the HTTP Method to be sent with the HTTP Request message.
//      * 
//      * @return the HTTP method
//      */
//     public String getMethod() {
//         return method;
//     }
// }


import com.here.account.http.HttpConstants.HttpMethods;
import org.junit.After;
import org.junit.Test;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.UUID;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

    @Test
    public void test_default_file() {
        fromFile = new FromHereCredentialsIniFile();
        File actualFile = fromFile.getFile();
        String actualName = actualFile.getName();
        String expectedName = "credentials.ini";
        assertTrue("default file name expected "+expectedName+", actual "+actualName, expectedName.equals(actualName));
    }

    @Test
    public void test_basic_file() throws IOException {
        createTmpFile();

        FromHereCredentialsIniStreamTest otherTezt = new FromHereCredentialsIniStreamTest();
        byte[] bytes = otherTezt.getDefaultIniStreamContents(false);

        try (OutputStream outputStream = new FileOutputStream(file)) {
            outputStream.write(bytes);
            outputStream.flush();
        }

        // use the file
        fromFile = new FromHereCredentialsIniFile(file, TEST_DEFAULT_INI_SECTION_NAME);
        otherTezt.verifyExpected(fromFile);
    }

    @Test
    public void test_getHttpMethod() {
        fromFile = new FromHereCredentialsIniFile();
// Path: here-oauth-client/src/main/java/com/here/account/http/HttpConstants.java
// public enum HttpMethods {
//     /**
//      * See <a href="https://tools.ietf.org/html/rfc7231#section-4.3.1">HTTP/1.1 Semantics and Content: GET</a>.
//      */
//     GET("GET"),
//     POST("POST");
//         
//     private final String method;
//         
//     private HttpMethods(String method) {
//         this.method = method;
//     }
//         
//     /**
//      * Returns the HTTP Method to be sent with the HTTP Request message.
//      * 
//      * @return the HTTP method
//      */
//     public String getMethod() {
//         return method;
//     }
// }


// Path: here-oauth-client/src/test/java/com/here/account/auth/provider/FromHereCredentialsIniFileTest.java
import com.here.account.http.HttpConstants.HttpMethods;
import org.junit.After;
import org.junit.Test;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.UUID;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;


    @Test
    public void test_default_file() {
        fromFile = new FromHereCredentialsIniFile();
        File actualFile = fromFile.getFile();
        String actualName = actualFile.getName();
        String expectedName = "credentials.ini";
        assertTrue("default file name expected "+expectedName+", actual "+actualName, expectedName.equals(actualName));
    }

    @Test
    public void test_basic_file() throws IOException {
        createTmpFile();

        FromHereCredentialsIniStreamTest otherTezt = new FromHereCredentialsIniStreamTest();
        byte[] bytes = otherTezt.getDefaultIniStreamContents(false);

        try (OutputStream outputStream = new FileOutputStream(file)) {
            outputStream.write(bytes);
            outputStream.flush();
        }

        // use the file
        fromFile = new FromHereCredentialsIniFile(file, TEST_DEFAULT_INI_SECTION_NAME);
        otherTezt.verifyExpected(fromFile);
    }

    @Test
    public void test_getHttpMethod() {
        fromFile = new FromHereCredentialsIniFile();
        HttpMethods httpMethod = fromFile.getHttpMethod();