### Question:
Schemas { public static boolean hasGeneratedJavaClass(final Schema schema) { Schema.Type type = schema.getType(); switch (type) { case ENUM: case RECORD: case FIXED: return true; default: return false; } } 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 testHasGeneratedJavaClass() { Assert.assertTrue(Schemas .hasGeneratedJavaClass(new Schema.Parser().parse("{\"type\": \"fixed\", \"name\": \"N\", \"size\": 10}"))); Assert.assertFalse(Schemas.hasGeneratedJavaClass(new Schema.Parser().parse("{\"type\": \"int\"}"))); }