### Question:
Schemas { public static String getJavaClassName(final Schema schema) { String namespace = schema.getNamespace(); if (namespace == null) { return SpecificCompiler.mangle(schema.getName()); } else { return namespace + '.' + SpecificCompiler.mangle(schema.getName()); } } private  Schemas(); static void copyAliases(final Schema from, final Schema to); static void copyAliases(final Schema.Field from, final Schema.Field to); static void copyLogicalTypes(final Schema from, final Schema to); static void copyProperties(final JsonProperties from, final JsonProperties to); static boolean hasGeneratedJavaClass(final Schema schema); static String getJavaClassName(final Schema schema); static T visit(final Schema start, final SchemaVisitor<T> visitor);  }### Answer:
@Test public void testGetJavaClassName() { Assert.assertEquals("N", Schemas.getJavaClassName(new Schema.Parser().parse("{\"type\": \"fixed\", \"name\": \"N\", \"size\": 10}"))); Assert.assertEquals("N", Schemas.getJavaClassName( new Schema.Parser().parse("{\"type\": \"fixed\", \"name\": \"N\", \"size\": 10, \"namespace\": \"\"}"))); Assert.assertEquals("com.example.N", Schemas.getJavaClassName(new Schema.Parser() .parse("{\"type\": \"fixed\", \"name\": \"N\", \"size\": 10, \"namespace\": \"com.example\"}"))); }