### Question:
ProxyNetworkFactory extends NetworkFactory { @MainThread protected void setNetworkScore(final int networkScore) { DebugAssert.isMainThread(); if (networkScore > mNetworkScoreFilter) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Changing network score filter from " + mNetworkScoreFilter + " to " + networkScore); } mNetworkScoreFilter = networkScore; this.setScoreFilter(mNetworkScoreFilter); } } protected  ProxyNetworkFactory(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities); void dump(@NonNull final IndentingPrintWriter ipw);  }### Answer:
@Test public void testSetNetworkScore_SameScore() { mProxyNetworkFactory.setNetworkScore(0); assertEquals(0, mProxyNetworkFactory.setScoreFilterMethod); assertEquals(0, mProxyNetworkFactory.scoreFilter); }
@Test public void testSetNetworkScore_GreaterScore() { mProxyNetworkFactory.setNetworkScore(NETWORK_SCORE); assertEquals(1, mProxyNetworkFactory.setScoreFilterMethod); assertEquals(NETWORK_SCORE, mProxyNetworkFactory.scoreFilter); }
@Test public void testSetNetworkScore_LesserScore() { mProxyNetworkFactory.setNetworkScore(NETWORK_SCORE); mProxyNetworkFactory.setNetworkScore(0); assertEquals(1, mProxyNetworkFactory.setScoreFilterMethod); assertEquals(NETWORK_SCORE, mProxyNetworkFactory.scoreFilter); }