I'm having trouble writing test cases for my IntegrationFlow, which uses Spring DSL integration. Below is a snippet of code, and I would like to check out the "transform" part. Please provide some help in mocking part of the pen, or if there is any other way to check this -
public class DmwConfig { @Value("${dmw.url.hostname}") public String hostName; @Bean public MessageChannel dmwGetProductDetailsByEanChannel() { return MessageChannels.direct().get(); } @Bean public IntegrationFlow dmwGetProductDetailsByEan() { return IntegrationFlows .from("input") .channel("dmwGetProductDetailsByEanChannel") .handle(httpMessageHandlerSpec()) .<JsonNode, ProductModel>transform( node -> new ProductModel( node.findValue("name").asText(null), node.findValue("inventory").findValue("orderable").asBoolean(false), node.findValue("stock_level").asInt(0), node.findValue("price").asDouble(0), "",
source share