List<String> sobiCommits = Arrays.asList(billSobis);
for(String commit: sobiCommits){
commitFile = TestHelper.getFilesByName(sobiDirectory, commit);
TestHelper.processFile(env, commitFile);
}
Bill initialBill = TestHelper.getBill(storage, billKey);
// Now process the incorrect status line sobi and get its bill.
File[] emptyCommit = TestHelper.getFilesByName(sobiDirectory, nullStatusSobi);
TestHelper.processFile(env, emptyCommit);
Bill nullSponsorBill = TestHelper.getBill(storage, billKey);
assertThat(nullSponsorBill.getSponsor().getFullname(), is(initialBill.getSponsor().getFullname()));
// Test if anything else got changed.
assertThat(initialBill.equals(nullSponsorBill), is(true)); // TODO do these both reference the same object?
}