Espresso Best Code Architecture
<p>I want to run an Espresso instrumentation test for my application. Test contains navigation to multiple activities and interactions with several widgets. </p>

<p>What could be the best possible coding style I should follow to keep code clear and maintainable.</p>

<p>For now I had create different class for each activity and access static test method as follow:</p>

<pre><code>@Test
public void validateUserNavigationScenario() {
    // Create a bitmap we can use for our simulated camera image
    SignOnActivity.validateLogin();

    ProductSelector.selectProduct();

    ProductDetail.showProductDetails();

    ProductDetail.addProductToCart();

    pressBack();

    ProductSelector.selectProduct();

    // ... additional test steps and validation ...
}
</code></pre>