public void When_group_does_not_exist_should_add_routes() { var routingTable = new UnicastRoutingTable(); var route = UnicastRoute.CreateFromEndpointName("Endpoint1"); routingTable.AddOrReplaceRoutes("key", new List<RouteTableEntry>() { new RouteTableEntry(typeof(Command), route), }); var retrievedRoute = routingTable.GetRouteFor(typeof(Command)); Assert.AreSame(route, retrievedRoute); }