I am writing a test to check if a custom Toast is being shown.
The Toast is not being constructed and shown in an Activity instance. I have a created a class that has access to the Context.
public class ToastHandler{
    private Context context;
    public ToastHander(Context context){
       this.context = context;
    }
   public createToast(DataStructure data){
      // Create and show Custom Toast using data and context
   }
}
How should I go about testing this? I am using Espresso.
 
    