@Test
public void useResourcesFromContext() throws Exception {

    Resources mockResources = mock(Resources.class);
    doReturn(mockResources).when(mockContext).getResources();
    Bitmap mockBitmap = createMockBitmap(BRICK_SIZE, BRICK_SIZE);
    legofy.convert(mockBitmap);
    verify(mockDrawer).setBitmap(eq(mockResources), any(Bitmap.class), anyInt());
}