### Question:
JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value instanceof String || value == null; if (!valid) { throw new MessageFormatException("Only objectified primitive objects and String types are allowed but was: " + value + " type: " + value.getClass()); } }  @SuppressWarnings("unchecked") static T convertPropertyTo(String name, Object value, Class<T> target); static void checkPropertyNameIsValid(String propertyName, boolean validateNames); static void checkIdentifierIsntLogicOperator(String identifier); static void checkIdentifierIsntNullTrueFalse(String identifier); static void checkIdentifierLetterAndDigitRequirements(String identifier); static void checkValidObject(Object value);  }### Answer:
@Test public void testCheckValidObjectBoolean() throws JMSException { JMSMessagePropertySupport.checkValidObject(Boolean.TRUE); }
@Test public void testCheckValidObjectByte() throws JMSException { JMSMessagePropertySupport.checkValidObject(Byte.MAX_VALUE); }
@Test public void testCheckValidObjectShort() throws JMSException { JMSMessagePropertySupport.checkValidObject(Short.MAX_VALUE); }
@Test public void testCheckValidObjectInteger() throws JMSException { JMSMessagePropertySupport.checkValidObject(Integer.MAX_VALUE); }
@Test public void testCheckValidObjectLong() throws JMSException { JMSMessagePropertySupport.checkValidObject(Long.MAX_VALUE); }
@Test public void testCheckValidObjectFloat() throws JMSException { JMSMessagePropertySupport.checkValidObject(Float.MAX_VALUE); }
@Test public void testCheckValidObjectDouble() throws JMSException { JMSMessagePropertySupport.checkValidObject(Double.MAX_VALUE); }
@Test public void testCheckValidObjectCharacter() throws JMSException { JMSMessagePropertySupport.checkValidObject(Character.MAX_VALUE); }
@Test public void testCheckValidObjectString() throws JMSException { JMSMessagePropertySupport.checkValidObject(""); }
@Test public void testCheckValidObjectNull() throws JMSException { JMSMessagePropertySupport.checkValidObject(null); }
@Test(expected = MessageFormatException.class) public void testCheckValidObjectList() throws JMSException { JMSMessagePropertySupport.checkValidObject(Collections.EMPTY_LIST); }