How to create an apk out of junit test class with Maven Project

How to create an apk out of junit test class with Maven Project? I am asking this because some test clouds like appthawk and testdroid need an apk file to upload the tests.