@Test
public void shouldBeAbleToDefaultToProtocolMakedAsDefault() throws Exception
{
Protocol<?> localProtocol = Mockito.mock(Protocol.class);
Mockito.when(localProtocol.getDescription()).thenReturn(new ProtocolDescription("local"));
Protocol<?> otherProtocol = Mockito.mock(Protocol.class);
Mockito.when(otherProtocol.getDescription()).thenReturn(new ProtocolDescription("other"));
ProtocolRegistry registry = createRegistry()
.addProtocol(new ProtocolDefinition(protocol, new HashMap<String, String>(), true))
.addProtocol(new ProtocolDefinition(localProtocol, new HashMap<String, String>()))
.addProtocol(new ProtocolDefinition(otherProtocol, new HashMap<String, String>()));