@Test public void getTableName() { assertEquals(Utils.getTableName(TestModel.class), "Tests"); }
static String getTableName(Class<? extends Model> clazz) { if (clazz.isAnnotationPresent(Table.class)) { return clazz.getAnnotation(Table.class).value(); } throw new NoTableAnnotationException(); }
Utils { static String getTableName(Class<? extends Model> clazz) { if (clazz.isAnnotationPresent(Table.class)) { return clazz.getAnnotation(Table.class).value(); } throw new NoTableAnnotationException(); } }
Utils { static String getTableName(Class<? extends Model> clazz) { if (clazz.isAnnotationPresent(Table.class)) { return clazz.getAnnotation(Table.class).value(); } throw new NoTableAnnotationException(); }  }
Utils { static String getTableName(Class<? extends Model> clazz) { if (clazz.isAnnotationPresent(Table.class)) { return clazz.getAnnotation(Table.class).value(); } throw new NoTableAnnotationException(); }   }
Utils { static String getTableName(Class<? extends Model> clazz) { if (clazz.isAnnotationPresent(Table.class)) { return clazz.getAnnotation(Table.class).value(); } throw new NoTableAnnotationException(); }    }