### Question:
MosaicInfo implements Stored { public boolean isSupplyMutable() { return mosaicFlags.isSupplyMutable(); } @SuppressWarnings("squid:S00107")  MosaicInfo(
      final String recordId,
      final MosaicId mosaicId,
      final BigInteger supply,
      final BigInteger startHeight,
      final Address ownerAddress,
      final Long revision,
      final MosaicFlags mosaicFlags,
      final int divisibility,
      final BigInteger duration); MosaicId getMosaicId(); BigInteger getSupply(); BigInteger getStartHeight(); UnresolvedAddress getOwnerAddress(); Long getRevision(); boolean isSupplyMutable(); boolean isTransferable(); boolean isRestrictable(); int getDivisibility(); BigInteger getDuration(); Optional<String> getRecordId(); NetworkCurrency toNetworkCurrency();  }### Answer:
@Test void shouldReturnIsSupplyMutableWhenIsMutable() { MosaicFlags mosaicFlags = MosaicFlags.create(true, true, true); MosaicInfo mosaicInfo = new MosaicInfo( "abc", new MosaicId(new BigInteger("-3087871471161192663")), new BigInteger("100"), new BigInteger("0"), Account.generateNewAccount(NetworkType.MIJIN_TEST).getAddress(), 1L, mosaicFlags, 3, BigInteger.valueOf(10)); assertTrue(mosaicInfo.isSupplyMutable()); }
@Test void shouldReturnIsSupplyMutableWhenIsImmutable() { MosaicFlags mosaicFlags = MosaicFlags.create(false, true, true); MosaicInfo mosaicInfo = new MosaicInfo( "abc", new MosaicId(new BigInteger("-3087871471161192663")), new BigInteger("100"), new BigInteger("0"), Account.generateNewAccount(NetworkType.MIJIN_TEST).getAddress(), 1L, mosaicFlags, 3, BigInteger.valueOf(10)); assertFalse(mosaicInfo.isSupplyMutable()); }