public class BrokenAnnotationTest
{
@Test (expectedExceptions = IllegalArgumentException.class)
public void testProvided()
{
BrokenProvided provided = new BrokenProvided();
provided.setBoth("Cat", 5);
Cache cache = new DefaultCacheFactory().createCache();
SearchableCache searchable = new SearchableCacheFactory().createSearchableCache(cache, BrokenProvided.class);