A Pattern-based Testing Framework for IoT Ecosystems - Pedro Martins Pontes (2018)