@Test public void shouldThrowException() throws Exception { expectedException.expect(IllegalStateException.class); new IllegalCombination().applyTo(null); }
@Override public void applyTo(Collection<Debt> debts) { throw new IllegalStateException("Illegal combination of transactions!"); }
IllegalCombination implements CombinationResult { @Override public void applyTo(Collection<Debt> debts) { throw new IllegalStateException("Illegal combination of transactions!"); } }
IllegalCombination implements CombinationResult { @Override public void applyTo(Collection<Debt> debts) { throw new IllegalStateException("Illegal combination of transactions!"); }  }
IllegalCombination implements CombinationResult { @Override public void applyTo(Collection<Debt> debts) { throw new IllegalStateException("Illegal combination of transactions!"); }  @Override boolean hasChanges(); @Override void applyTo(Collection<Debt> debts); @Override boolean equals(Object obj); }
IllegalCombination implements CombinationResult { @Override public void applyTo(Collection<Debt> debts) { throw new IllegalStateException("Illegal combination of transactions!"); }  @Override boolean hasChanges(); @Override void applyTo(Collection<Debt> debts); @Override boolean equals(Object obj);  }