### Question:
MosaicInfo implements Stored { public NetworkCurrency toNetworkCurrency() { return new NetworkCurrencyBuilder(getMosaicId(), getDivisibility()) .withTransferable(isTransferable()) .withSupplyMutable(isSupplyMutable()) .build(); } @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 toNetworkCurrency() { MosaicFlags mosaicFlags = MosaicFlags.create(true, true, true); MosaicId mosaicId = new MosaicId(new BigInteger("-3087871471161192663")); Address address = Account.generateNewAccount(NetworkType.MIJIN_TEST).getAddress(); MosaicInfo mosaicInfo = new MosaicInfo( "abc", mosaicId, new BigInteger("100"), new BigInteger("0"), address, 1L, mosaicFlags, 3, BigInteger.valueOf(10)); NetworkCurrency networkCurrency = mosaicInfo.toNetworkCurrency(); assertEquals(mosaicId, networkCurrency.getMosaicId().get()); assertFalse(networkCurrency.getNamespaceId().isPresent()); assertTrue(networkCurrency.isSupplyMutable()); assertTrue(networkCurrency.isTransferable()); assertEquals(3, networkCurrency.getDivisibility()); }