public void testDomainClassWithNameEndingInCodecIsNotACodec() {
GroovyClassLoader gcl = new GroovyClassLoader();
Class<?> c = gcl.parseClass("class MySpecialCodec { Long id;Long version;}\n");
ArtefactHandler domainClassHandler = new DomainClassArtefactHandler();
assertTrue(domainClassHandler.isArtefact(c));
ArtefactHandler codecHandler = new CodecArtefactHandler();
assertFalse(codecHandler.isArtefact(c));
}