@@ -0,0 +1,1779 @@
+package net.yslibrary.rxrealm;%0A%0Aimport net.yslibrary.rxrealm.Dto.PersonDto;%0Aimport net.yslibrary.rxrealm.entity.Person;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport android.content.Context;%0Aimport android.support.test.InstrumentationRegistry;%0Aimport android.support.test.runner.AndroidJUnit4;%0A%0Aimport io.realm.Realm;%0Aimport rx.functions.Func1;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0A/**%0A * Created by shimizu_yasuhiro on 15/06/02.%0A */%0A@RunWith(AndroidJUnit4.class)%0Apublic class RealmObservableTest %7B%0A%0A    private static final String REALM_NAME = %22rxrealm.realm%22;%0A%0A    private Realm mRealm;%0A%0A    @Before%0A    public void createRealm() %7B%0A        Context context = InstrumentationRegistry.getTargetContext();%0A        Realm.deleteRealmFile(context, REALM_NAME);%0A        Realm.getInstance(context, REALM_NAME);%0A    %7D%0A%0A    @Test%0A    public void RealmObservable_object() %7B%0A%0A        Context context = InstrumentationRegistry.getTargetContext();%0A%0A        PersonDto person = RealmObservable.object(context, REALM_NAME, new Func1%3CRealm, Person%3E() %7B%0A            @Override%0A            public Person call(Realm realm) %7B%0A                Person person = realm.createObject(Person.class);%0A                person.setFirstName(%22John%22);%0A                person.setLastName(%22Smith%22);%0A%0A                return person;%0A            %7D%0A        %7D).map(new Func1%3CPerson, PersonDto%3E() %7B%0A            @Override%0A            public PersonDto call(Person person) %7B%0A                return new PersonDto(person.getFirstName(), person.getLastName());%0A            %7D%0A        %7D).toBlocking().first();%0A%0A        assertThat(person.getFirstName(), is(%22John%22));%0A        assertThat(person.getLastName(), is(%22Smith%22));%0A    %7D%0A%0A%7D%0A

add test for object