@Test
public void testRetry() throws Throwable {

    org.springframework.retry.support.RetryTemplate template =
            new org.springframework.retry.support.RetryTemplate();
    Mockito.doReturn(template).when(beanFactory)
            .getBean(TEST_RETRY_TEMPLATE, org.springframework.retry.support.RetryTemplate.class);
    Mockito.doReturn("a").when(mockPjp).proceed();
    Assert.assertEquals("a", aspect.retry(mockPjp, mockAnnotation));
    Mockito.verify(mockPjp, Mockito.times(1)).proceed();
}