@Test
public void testBuilderEntriesSizeMatch()
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(MockCommand.class).add(MockCommand2.class).add(MockCommand3.class).add(new MockCommand());
NavigationResult result = builder.build();
Assert.assertNotNull(result);
Assert.assertNotNull(result.getNext());
Assert.assertEquals(4, result.getNext().length);
}