@Test public void testGetMessage() { Message message = mock(Message.class); Object[] args = new Object[]{message}; Message fromUtil = getMessage(args); assertSame(message, fromUtil); }
static Message getMessage(Object[] args) { Message m = null; for (Object obj : args) { if (obj instanceof Message) { m = (Message) obj; break; } } return m; }
JMSPluginUtils { static Message getMessage(Object[] args) { Message m = null; for (Object obj : args) { if (obj instanceof Message) { m = (Message) obj; break; } } return m; } }
JMSPluginUtils { static Message getMessage(Object[] args) { Message m = null; for (Object obj : args) { if (obj instanceof Message) { m = (Message) obj; break; } } return m; } private  JMSPluginUtils(); }
JMSPluginUtils { static Message getMessage(Object[] args) { Message m = null; for (Object obj : args) { if (obj instanceof Message) { m = (Message) obj; break; } } return m; } private  JMSPluginUtils();  }
JMSPluginUtils { static Message getMessage(Object[] args) { Message m = null; for (Object obj : args) { if (obj instanceof Message) { m = (Message) obj; break; } } return m; } private  JMSPluginUtils();   }