ExceptionAssert.assertThrows(
v -> new MosaicDefinitionCreationTransaction(TIME_INSTANT, SIGNER, mosaicDefinition, creationFeeSink, fee),
IllegalArgumentException.class);
}
@Test
<BUG>public void getOtherAccountsReturnsCreationFeeSinkAndLevyIsNull() {
</BUG>
final MosaicDefinitionCreationTransaction transaction = createTransaction();
final Collection<Account> accounts = transaction.getOtherAccounts();
Assert.assertThat(accounts, IsEqual.equalTo(Collections.singletonList(CREATION_FEE_SINK)));

ExceptionAssert.assertThrows(
v -> new MosaicDefinitionCreationTransaction(TIME_INSTANT, SIGNER, mosaicDefinition, creationFeeSink, fee),
IllegalArgumentException.class);
}
@Test
public void getOtherAccountsReturnsCreationFeeSinkWhenLevyIsNull() {
final MosaicDefinitionCreationTransaction transaction = createTransaction();
final Collection<Account> accounts = transaction.getOtherAccounts();
Assert.assertThat(accounts, IsEqual.equalTo(Collections.singletonList(CREATION_FEE_SINK)));
