// Path: here-oauth-client/src/main/java/com/here/account/util/JacksonSerializer.java
// public class JacksonSerializer implements Serializer {
// 
//     public JacksonSerializer() {
//     }
//     
//     /**
//      * {@inheritDoc}
//      */
//     public Map<String, Object> jsonToMap(InputStream jsonInputStream) {
//         try {
//             return JsonSerializer.toMap(jsonInputStream);
//         } catch (IOException e) {
//             throw new RuntimeException("trouble deserializing json: " + e, e);
//         }
//     }
// 
//     @Override
//     public <T> T jsonToPojo(InputStream jsonInputStream, Class<T> pojoClass) {
//         try {
//             return JsonSerializer.toPojo(jsonInputStream, pojoClass);
//         } catch (IOException e) {
//             throw new RuntimeException("trouble deserializing json: " + e, e);
//         }
//     }
// 
//     @Override
//     public String objectToJson(Object object) {
//         try {
//             return JsonSerializer.objectToJson(object);
//         } catch (JsonProcessingException e) {
//             throw new RuntimeException("trouble serializing json: " + e, e);
//         }
//     }
// 
//     @Override
//     public void writeObjectToJson(OutputStream outputStream, Object object) {
//         try {
//             JsonSerializer.writeObjectToJson(outputStream, object);
//         } catch (IOException e) {
//             throw new RuntimeException("trouble serializing json: " + e, e);
//         }
//     }
//     
// 
// }
// 
// Path: here-oauth-client/src/main/java/com/here/account/util/Serializer.java
// public interface Serializer {
//     
//     /**
//      * Reads from the input jsonInputStream containing bytes from a JSON stream, 
//      * and returns the corresponding Map&lt;String, Object&gt;.
//      * 
//      * @param jsonInputStream the input stream
//      * @return the corresponding deserialized Map&lt;String, Object&gt;
//      */
//     Map<String, Object> jsonToMap(InputStream jsonInputStream);
//     
//     <T> T jsonToPojo (InputStream jsonInputStream, Class<T> pojoClass);
//     
//     String objectToJson(Object object);
//     
//     void writeObjectToJson(OutputStream outputStream, Object object);
// 
// }


import static org.junit.Assert.assertTrue;
import com.here.account.util.JacksonSerializer;
import com.here.account.util.Serializer;
import org.junit.Test;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/*
 * Copyright (c) 2018 HERE Europe B.V.
 * 
 * Licensed 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 com.here.account.oauth2;




public class FileAccessTokenResponseTest {

    private FileAccessTokenResponse response;

    private File tmpFile;
// Path: here-oauth-client/src/main/java/com/here/account/util/JacksonSerializer.java
// public class JacksonSerializer implements Serializer {
// 
//     public JacksonSerializer() {
//     }
//     
//     /**
//      * {@inheritDoc}
//      */
//     public Map<String, Object> jsonToMap(InputStream jsonInputStream) {
//         try {
//             return JsonSerializer.toMap(jsonInputStream);
//         } catch (IOException e) {
//             throw new RuntimeException("trouble deserializing json: " + e, e);
//         }
//     }
// 
//     @Override
//     public <T> T jsonToPojo(InputStream jsonInputStream, Class<T> pojoClass) {
//         try {
//             return JsonSerializer.toPojo(jsonInputStream, pojoClass);
//         } catch (IOException e) {
//             throw new RuntimeException("trouble deserializing json: " + e, e);
//         }
//     }
// 
//     @Override
//     public String objectToJson(Object object) {
//         try {
//             return JsonSerializer.objectToJson(object);
//         } catch (JsonProcessingException e) {
//             throw new RuntimeException("trouble serializing json: " + e, e);
//         }
//     }
// 
//     @Override
//     public void writeObjectToJson(OutputStream outputStream, Object object) {
//         try {
//             JsonSerializer.writeObjectToJson(outputStream, object);
//         } catch (IOException e) {
//             throw new RuntimeException("trouble serializing json: " + e, e);
//         }
//     }
//     
// 
// }
// 
// Path: here-oauth-client/src/main/java/com/here/account/util/Serializer.java
// public interface Serializer {
//     
//     /**
//      * Reads from the input jsonInputStream containing bytes from a JSON stream, 
//      * and returns the corresponding Map&lt;String, Object&gt;.
//      * 
//      * @param jsonInputStream the input stream
//      * @return the corresponding deserialized Map&lt;String, Object&gt;
//      */
//     Map<String, Object> jsonToMap(InputStream jsonInputStream);
//     
//     <T> T jsonToPojo (InputStream jsonInputStream, Class<T> pojoClass);
//     
//     String objectToJson(Object object);
//     
//     void writeObjectToJson(OutputStream outputStream, Object object);
// 
// }


// Path: here-oauth-client/src/test/java/com/here/account/oauth2/FileAccessTokenResponseTest.java
import static org.junit.Assert.assertTrue;
import com.here.account.util.JacksonSerializer;
import com.here.account.util.Serializer;
import org.junit.Test;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;


/*
 * Copyright (c) 2018 HERE Europe B.V.
 * 
 * Licensed 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 com.here.account.oauth2;




public class FileAccessTokenResponseTest {

    private FileAccessTokenResponse response;

    private File tmpFile;
    private Serializer serializer;