// Path: library/src/androidTest/java/eu/inloop/viewmodel/fixture/activity/VMTestActivity.java
// public class VMTestActivity extends ViewModelBaseActivity<IVMTestActivityView, VMTestActivityViewModel> implements IVMTestActivityView {
// 
//     public static final int RESULT_CODE_OK = 1;
//     public static final String EXTRA_CALL_ON_BIND = "EXTRA_CALL_ON_BIND";
// 
//     @NonNull
//     public static Intent makeIntent(@NonNull Context context, boolean callOnBindModel) {
//         Intent intent = new Intent(context, VMTestActivity.class);
//         intent.putExtra(EXTRA_CALL_ON_BIND, callOnBindModel);
// 
//         return intent;
//     }
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         LinearLayout view = new LinearLayout(this);
//         view.setId(android.R.id.content);
//         setContentView(view);
// 
//         if (savedInstanceState == null) {
//             addTestFragment();
//         }
// 
//         setModelView(this);
//     }
// 
//     public void addTestFragment() {
//         getSupportFragmentManager()
//                 .beginTransaction()
//                 .add(android.R.id.content, new VMTestFragment())
//                 .commitNow();
//     }
// 
//     public void removeTestFragment() {
//         getSupportFragmentManager()
//                 .beginTransaction()
//                 .remove(getTestFragment())
//                 .commitNow();
//     }
// 
//     @NonNull
//     public VMTestFragment getTestFragment() {
//         for (Fragment fragment : getSupportFragmentManager().getFragments()) {
//             if (fragment instanceof VMTestFragment) {
//                 return (VMTestFragment) fragment;
//             }
//         }
//         throw new AssertionError("Fragment not found");
//     }
// 
//     @Override
//     public void onLoadData(boolean loaded) {
//         setResult(RESULT_CODE_OK);
//         finish();
//     }
// 
// }


import android.content.pm.ActivityInfo;
import androidx.test.InstrumentationRegistry;
import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Map;
import eu.inloop.viewmodel.fixture.activity.VMTestActivity;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
package eu.inloop.viewmodel;








@RunWith(AndroidJUnit4.class)
public final class ViewModelActivityTest {

    @Rule
// Path: library/src/androidTest/java/eu/inloop/viewmodel/fixture/activity/VMTestActivity.java
// public class VMTestActivity extends ViewModelBaseActivity<IVMTestActivityView, VMTestActivityViewModel> implements IVMTestActivityView {
// 
//     public static final int RESULT_CODE_OK = 1;
//     public static final String EXTRA_CALL_ON_BIND = "EXTRA_CALL_ON_BIND";
// 
//     @NonNull
//     public static Intent makeIntent(@NonNull Context context, boolean callOnBindModel) {
//         Intent intent = new Intent(context, VMTestActivity.class);
//         intent.putExtra(EXTRA_CALL_ON_BIND, callOnBindModel);
// 
//         return intent;
//     }
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         LinearLayout view = new LinearLayout(this);
//         view.setId(android.R.id.content);
//         setContentView(view);
// 
//         if (savedInstanceState == null) {
//             addTestFragment();
//         }
// 
//         setModelView(this);
//     }
// 
//     public void addTestFragment() {
//         getSupportFragmentManager()
//                 .beginTransaction()
//                 .add(android.R.id.content, new VMTestFragment())
//                 .commitNow();
//     }
// 
//     public void removeTestFragment() {
//         getSupportFragmentManager()
//                 .beginTransaction()
//                 .remove(getTestFragment())
//                 .commitNow();
//     }
// 
//     @NonNull
//     public VMTestFragment getTestFragment() {
//         for (Fragment fragment : getSupportFragmentManager().getFragments()) {
//             if (fragment instanceof VMTestFragment) {
//                 return (VMTestFragment) fragment;
//             }
//         }
//         throw new AssertionError("Fragment not found");
//     }
// 
//     @Override
//     public void onLoadData(boolean loaded) {
//         setResult(RESULT_CODE_OK);
//         finish();
//     }
// 
// }


// Path: library/src/androidTest/java/eu/inloop/viewmodel/ViewModelActivityTest.java
import android.content.pm.ActivityInfo;
import androidx.test.InstrumentationRegistry;
import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Map;
import eu.inloop.viewmodel.fixture.activity.VMTestActivity;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;

package eu.inloop.viewmodel;








@RunWith(AndroidJUnit4.class)
public final class ViewModelActivityTest {

    @Rule
    public final ActivityTestRule<VMTestActivity> mActivityTestRule =