HaloNetClient { @NonNull @Api(2.0) public Context context() { return mContext; } HaloNetClient(@NonNull Context context, @NonNull OkHttpClient.Builder clientBuilder, @NonNull HaloEndpointCluster endpoints, boolean disableKitKatCertificate); @NonNull @Api(2.0) OkHttpClient.Builder buildCertificates(@NonNull OkHttpClient.Builder okBuilder); @Api(2.0) Response request(@NonNull HaloRequest haloRequest); @SuppressWarnings("unchecked") @Api(2.0) T request(@NonNull HaloRequest haloRequest, @NonNull final TypeReference<T> type); @SuppressWarnings("unchecked") @Api(2.0) T request(@NonNull HaloRequest haloRequest, @NonNull Class<T> clazz); @Api(2.0) HaloEndpointCluster endpoints(); @NonNull @Api(2.0) OkHttpClient ok(); @Api(2.0) void overrideOk(@NonNull OkHttpClient.Builder builder); @NonNull @Api(2.0) Context context(); @NonNull @Api(2.4) void closeCache();  }
@Test public void thatReturnTheContext(){ assertThat(mHaloNetClient.context()).isEqualTo(RuntimeEnvironment.application); }