BlockMetadataConverterFactory { public ModelConverter<BlockMetadata, Rpc.BlockMetadata> create() { return new ModelConverter<>(domainConverter, rpcConverter); }  ModelConverter<BlockMetadata, Rpc.BlockMetadata> create();  }
@Test public void testConvert() { final ModelConverter<BlockMetadata, Rpc.BlockMetadata> converter = new BlockMetadataConverterFactory().create(); final Rpc.BlockMetadata rpcBlockMetadata = Rpc.BlockMetadata.newBuilder().build(); final BlockMetadata converted = converter.convertToDomainModel(rpcBlockMetadata); assertNotNull(converted); }