### Question:
NetworkStateTracker extends ConstraintTracker<NetworkState> { @Override public NetworkState getInitialState() { return getActiveNetworkState(); } NetworkStateTracker(Context context); @Override NetworkState getInitialState(); @Override void startTracking(); @Override void stopTracking();  }### Answer:
@Test @SmallTest @SdkSuppress(maxSdkVersion = 15) public void testGetInitialState_nullNetworkInfoSdk15() { NetworkState expectedState = new NetworkState(false, false, true, false); assertThat(mTracker.getInitialState(), is(expectedState)); }
@Test @SmallTest @SdkSuppress(minSdkVersion = 16) public void testGetInitialState_nullNetworkInfo() { NetworkState expectedState = new NetworkState(false, false, false, false); assertThat(mTracker.getInitialState(), is(expectedState)); }