import java.io.*;

File target = new File(basedir, "target/classes");
for(String f: new String[] { "com/example/Reply.class", "com/otherexample/MyReply.class" }){
  if( !new File(target, f).exists() ){
     throw new RuntimeException("file does not exists: target/classes/" + f);
  }
}