@Test(expectedExceptions = RuntimeException.class,
        expectedExceptionsMessageRegExp = ".*getString\\(\\) cannot have both @HealthCheck and @HealthCheckRemoveFromRotation annotations")
public void testMethodRegularAndRemoveAnnotations()
{

    HealthBean.forTarget(new Object() {
        @HealthCheck("Name 1")
        @HealthCheckRemoveFromRotation("Name 2")
        public String getString()
        {
            return null;
        }
    });
}