### Question:
PostMessage extends ProcessMessage { public String getPhoneNumber() { return Utility.getPhoneNumber(mContext, mPrefsFactory); } @Inject  PostMessage(Context context, PrefsFactory prefsFactory,
            MessageHttpClient messageHttpClient,
            MessageDataSource messageDataSource,
            WebServiceDataSource webServiceDataSource,
            FilterDataSource filterDataSource,
            ProcessSms processSms,
            FileManager fileManager,
            ProcessMessageResult processMessageResult); boolean routeSms(Message message); boolean syncPendingMessages(); boolean postMessage(List<Message> messages); boolean routePendingMessage(Message message); void performTask(); String getErrorMessage(); boolean isConnected(); String getPhoneNumber();  }### Answer:
@Test public void shouldSendMessageWhenBothWhitelistAndBlacklistAreDisabled() { List<SyncUrl> syncUrls = Arrays.asList(mMockSyncUrl); given(mMockFilter.getPhoneNumber()).willReturn(FROM); given(mMockFilter.getStatus()).willReturn(Filter.Status.WHITELIST); List<Filter> filters = Arrays.asList(mMockFilter); given(mMockFilterDataSource.getFilters()).willReturn(filters); preformSyncWhiteListEnabled(syncUrls); verify(mMockMessageHttpClient, times(1)) .postSmsToWebService(syncUrls.get(0), mMockMessage, FROM, DEVICE_ID); }