any(JClassType.class))).thenReturn(imageMethod);
if (repeatStyle != null) {
// simulate a @ImageOptions(repeatStyle)
ImageOptions imageOptions = mock(ImageOptions.class);
when(imageOptions.repeatStyle()).thenReturn(repeatStyle);
when(imageMethod.getAnnotation(ImageOptions.class)).thenReturn(imageOptions);
}
ImageSpriteCreator visitor = new ImageSpriteCreator(cssTree.getMutatingVisitController(),
resourceContext, errorManager, methodByPathHelper);