public static void testPrimeSponsor(Environment env, File sobiDirectory,
Storage storage, String billKey, String sobi, String expectedSponsorName, Boolean expectedNull)
{
File[] initialCommit = TestHelper.getFilesByName(sobiDirectory, sobi);
TestHelper.processFile(env, initialCommit);
Bill bill = TestHelper.getBill(storage, billKey);
if(expectedNull){
assertThat(bill.getSponsor(), nullValue());
}
else{
String billSponsorName = bill.getSponsor().getFullname();
assertThat(billSponsorName, equalToIgnoringCase(expectedSponsorName));
}
}