@@ -0,0 +1,1505 @@
+package com.abhi.fyberdemo.fragments;%0A%0Aimport android.support.v4.app.Fragment;%0A%0Aimport com.abhi.fyberdemo.MainActivity;%0Aimport com.abhi.fyberdemo.R;%0Aimport com.abhi.fyberdemo.models.OfferResponse;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0Aimport org.robolectric.Robolectric;%0A%0A/**%0A * Created by abhi on 28/10/16.%0A */%0Apublic class FormFragmentTest %7B%0A    private MainActivity mMainActivity;%0A    private FormFragment mFormFragment;%0A    @Before%0A    public void setUp() throws Exception %7B%0A        OfferResponse _offerResponse = Mockito.mock(OfferResponse.class);%0A        mMainActivity = Robolectric.setupActivity(MainActivity.class);%0A        mFormFragment = FormFragment.newInstance(mMainActivity);%0A        startFragment(mFormFragment);%0A    %7D%0A    private void startFragment(Fragment fragment) %7B%0A        mMainActivity.getSupportFragmentManager()%0A                .beginTransaction()%0A                .add(R.id.frag_container, fragment)%0A                .commit();%0A    %7D%0A    @Test%0A    public void newInstance() throws Exception %7B%0A        Assert.assertNotNull(mMainActivity);%0A        Assert.assertNotNull(mFormFragment);%0A        Assert.assertNotNull(mFormFragment.getFragmentListener());%0A    %7D%0A%0A    @Test%0A    public void getLayoutId() throws Exception %7B%0A        int layoutId = mFormFragment.getLayoutId();%0A        Assert.assertTrue(%22Layout Id can not be 0 %22, layoutId != 0);%0A        Assert.assertTrue(%22Layout Id can not be negative %22, layoutId %3E 0);%0A    %7D%0A%7D

Add UnitTest for FormFragment