HaloFramework { @Api(1.1) @NonNull public HaloNetworkApi network() { return mNetworkApi; } private  HaloFramework(@NonNull HaloConfig configuration); @Api(1.1) static HaloFramework create(@NonNull Context context, @NonNull Parser.Factory parser); @Api(1.1) static HaloFramework create(@NonNull HaloConfig.Builder configurationBuilder); @Api(2.0) @NonNull HaloStorageApi createStorage(@NonNull StorageConfig config); @Api(2.0) HaloStorageApi storage(@NonNull String storageName); @Api(1.1) @NonNull HaloNetworkApi network(); @Api(1.1) @NonNull HaloToolboxApi toolbox(); @Api(1.1) @NonNull Context context(); @Api(1.3) void emit(@Nullable Event event); @Api(1.3) @CheckResult(suggest = "Subscription.unsubscribe() to avoid memory leaks") ISubscription subscribe(@NonNull Subscriber subscriber, @NonNull EventId id); @Api(1.1) void setDebugFlag(boolean debug); @Api(1.1) boolean isInDebugMode(); @Api(2.2) void setPrintLogToFilePolicy(int printPolicy); @Api(2.2) int printToFilePolicy(); @Api(2.0) @NonNull Parser.Factory parser();  }
@Test public void thatCanGetNetwork(){ assertThat(mFramework.network()).isNotNull(); }