Job { @Api(2.0) public boolean canBePersisted() { return mBuilder.mCanBePersisted; } private  Job(@NonNull Builder builder); private  Job(); @Override boolean equals(Object o); @Api(2.0) @NonNull JobInfo info(); @Api(2.0) @NonNull Act action(); @Api(2.0) @NonNull Map<String, Boolean> conditionsOk(); @Api(2.0) boolean canBePersisted(); @NonNull @Api(2.0) List<Trigger> triggers(); static Job.Builder builder(@NonNull Act action); static final int NETWORK_TYPE_NONE; static final int NETWORK_TYPE_ANY; static final int NETWORK_TYPE_UNMETERED; }
@Test public void thatCanPersist() throws IOException { Job job = givenAJob(mCallbackFlag, "job"); assertThat(job.canBePersisted()).isFalse(); }