class AndroidMocks {

    public static Resources mockResources() {
        Resources resources = mock(Resources.class);
        when(resources.getText(anyInt())).thenReturn("");
        when(resources.getString(anyInt())).thenReturn("");
        return resources;
    }

}