}
@Test(expectedExceptions = NoSuchElementException.class)
public void testThrowsNoSuchElementWhenNoneMatchConfigurationKey() {
ReferenceType reference1 = new ReferenceTypeImpl("travis tritt", null, null);
ReferenceType reference2 = new ReferenceTypeImpl("hail mary", null, null);
new OnlyReferenceTypeFirstWithNameMatchingConfigurationKeyOrDefault(Guice.createInjector(new AbstractModule() {
protected void configure() {
bindConstant().annotatedWith(Names.named("foo")).to(".*happy.*");
}