Implementation of Android Mock allowing several configurations