### Question:
LiteralCommons { public static String getXSDType(Class<?> clazz) { if(String.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"string"; } else if(Integer.class.isAssignableFrom(clazz) || int.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"integer"; } else if(Long.class.isAssignableFrom(clazz) || long.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"long"; } else if(Double.class.isAssignableFrom(clazz) || double.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"double"; } else if(Float.class.isAssignableFrom(clazz) || float.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"float"; } else if(Date.class.isAssignableFrom(clazz) || DateTime.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"dateTime"; } else if(Boolean.class.isAssignableFrom(clazz) || boolean.class.isAssignableFrom(clazz)) { return Namespaces.NS_XSD+"boolean"; } else { return null; } } private  LiteralCommons(); static String createCacheKey(String content, Locale language, URI type); static String createCacheKey(String content, Locale language, String type); static String createCacheKey(DateTime date, String type); static String createCacheKey(Literal l); static String createCacheKey(String content, String language, String type); static String getXSDType(Class<?> clazz); static String getRDFLangStringType();  }### Answer:
@Test public void testGetXSDType() { Assert.assertEquals(XMLSchema.STRING.stringValue() , LiteralCommons.getXSDType(String.class)); Assert.assertEquals(XMLSchema.INTEGER.stringValue(), LiteralCommons.getXSDType(int.class)); Assert.assertEquals(XMLSchema.INTEGER.stringValue(), LiteralCommons.getXSDType(Integer.class)); Assert.assertEquals(XMLSchema.LONG.stringValue(), LiteralCommons.getXSDType(long.class)); Assert.assertEquals(XMLSchema.LONG.stringValue(), LiteralCommons.getXSDType(Long.class)); Assert.assertEquals(XMLSchema.DOUBLE.stringValue(), LiteralCommons.getXSDType(double.class)); Assert.assertEquals(XMLSchema.DOUBLE.stringValue(), LiteralCommons.getXSDType(Double.class)); Assert.assertEquals(XMLSchema.FLOAT.stringValue(), LiteralCommons.getXSDType(float.class)); Assert.assertEquals(XMLSchema.FLOAT.stringValue(), LiteralCommons.getXSDType(Float.class)); Assert.assertEquals(XMLSchema.BOOLEAN.stringValue(), LiteralCommons.getXSDType(boolean.class)); Assert.assertEquals(XMLSchema.BOOLEAN.stringValue(), LiteralCommons.getXSDType(Boolean.class)); Assert.assertEquals(XMLSchema.DATETIME.stringValue(), LiteralCommons.getXSDType(Date.class)); }