// Path: cachebank/src/test/java/net/jspiner/cachebank/datasource/CarDataSource.java
// public class CarDataSource implements DataSource<String, CarModel> {
// 
//     @Override
//     public void fetchData(String key, DataEmitter<CarModel> emitter) {
//         emitter.emit(
//                 DummyNetwork.requestCar(key)
//         );
//     }
// 
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/CarModel.java
// public class CarModel {
// 
//     public int index;
//     public String carName;
// 
//     public CarModel(){
// 
//     }
// 
//     public CarModel(int index, String carName){
//         this.index = index;
//         this.carName = carName;
//     }
// 
// }


import net.jspiner.cachebank.datasource.CarDataSource;
import net.jspiner.cachebank.model.CarModel;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package net.jspiner.cachebank;



/**
 * Created by JSpiner on 2017. 7. 13..
 * JSpiner
 * Contact : jspiner@naver.com
 */

public class ProviderTest {

    @Before
    public void before(){
        new Bank.Builder()
                .init();

        Assert.assertTrue(Bank.isInitialized());
    }

    @Test
    public void dataObjectReturnClassTypeTest(){
// Path: cachebank/src/test/java/net/jspiner/cachebank/datasource/CarDataSource.java
// public class CarDataSource implements DataSource<String, CarModel> {
// 
//     @Override
//     public void fetchData(String key, DataEmitter<CarModel> emitter) {
//         emitter.emit(
//                 DummyNetwork.requestCar(key)
//         );
//     }
// 
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/CarModel.java
// public class CarModel {
// 
//     public int index;
//     public String carName;
// 
//     public CarModel(){
// 
//     }
// 
//     public CarModel(int index, String carName){
//         this.index = index;
//         this.carName = carName;
//     }
// 
// }


// Path: cachebank/src/test/java/net/jspiner/cachebank/ProviderTest.java
import net.jspiner.cachebank.datasource.CarDataSource;
import net.jspiner.cachebank.model.CarModel;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

package net.jspiner.cachebank;



/**
 * Created by JSpiner on 2017. 7. 13..
 * JSpiner
 * Contact : jspiner@naver.com
 */

public class ProviderTest {

    @Before
    public void before(){
        new Bank.Builder()
                .init();

        Assert.assertTrue(Bank.isInitialized());
    }

    @Test
    public void dataObjectReturnClassTypeTest(){
        Object object = Bank.withdrawal(CarModel.class, "sonata");