### Question:
StatisticDataCollectionHelper { public static boolean isOutOnlyFlow(MessageContext messageContext) { return "true".equals(messageContext.getProperty(SynapseConstants.OUT_ONLY)); }  static String getStatisticTraceId(MessageContext messageContext); static int getFlowPosition(MessageContext messageContext); static int getParentFlowPosition(MessageContext messageContext, Integer newParentIndex); static List<Integer> getParentList(MessageContext messageContext); static boolean isOutOnlyFlow(MessageContext messageContext); static void collectData(MessageContext messageContext, boolean isContentAltering,
	                               Boolean isCollectingTracing, StatisticDataUnit statisticDataUnit); static void collectAggregatedParents(List<MessageContext> messages, MessageContext newCtx);  }### Answer:
@Test public void testIsOutOnlyFlow() { messageContext.setProperty(SynapseConstants.OUT_ONLY, "true"); Assert.assertTrue("should return true", StatisticDataCollectionHelper.isOutOnlyFlow(messageContext)); messageContext.setProperty(SynapseConstants.OUT_ONLY, "false"); Assert.assertFalse("should return false", StatisticDataCollectionHelper.isOutOnlyFlow(messageContext)); }