@Test
public void when_creating_a_transition_with_not_enough_input__an_exception_should_be_thrown() {

	assertThatThrownBy(() -> this.mapper.mapToParticles(
		ImmutableList.of(new TestParticle(UInt256.ONE)),
		UInt256.TWO)
	)
		.isInstanceOf(NotEnoughFungiblesException.class)
		.matches(e -> {
			NotEnoughFungiblesException notEnoughFungiblesException = (NotEnoughFungiblesException) e;
			return notEnoughFungiblesException.getCurrent().equals(UInt256.ONE)
				&& notEnoughFungiblesException.getRequested().equals(UInt256.TWO);
		});
}