assertThat(pair.two(), Matchers.nullValue());
}
@Test
public void addSameItemToFullPairWillBeIgnored() throws Exception {
TransHistoryItem one = newItem("1");
TransHistoryItem two = newItem("2");
TransHistoryItem three = newItem("3");
pair =
ComparingPair.empty().tryAddOrRemoveIfExists(one)
.tryAddOrRemoveIfExists(two);
assertThat(pair.isFull(), Matchers.is(true));