QueueConfig { public static Builder builderWith(final long id, final SimpleString name) { return new QueueConfig.Builder(id, name); } private  QueueConfig(final long id,
                       final SimpleString address,
                       final SimpleString name,
                       final Filter filter,
                       final PagingStore pagingStore,
                       final PageSubscription pageSubscription,
                       final SimpleString user,
                       final boolean durable,
                       final boolean temporary,
                       final boolean autoCreated,
                       final RoutingType routingType,
                       final int maxConsumers,
                       final boolean exclusive,
                       final boolean lastValue,
                       final SimpleString lastValueKey,
                       final boolean nonDestructive,
                       final int consumersBeforeDispatch,
                       final long delayBeforeDispatch,
                       final boolean purgeOnNoConsumers,
                       final boolean groupRebalance,
                       final int groupBuckets,
                       final SimpleString groupFirstKey,
                       final boolean autoDelete,
                       final long autoDeleteDelay,
                       final long autoDeleteMessageCount,
                       final long ringSize,
                       final boolean configurationManaged); static Builder builderWith(final long id, final SimpleString name); static Builder builderWith(final long id, final SimpleString name, final SimpleString address); static QueueConfig fromQueueConfiguration(QueueConfiguration queueConfiguration); long id(); SimpleString address(); SimpleString name(); Filter filter(); PageSubscription pageSubscription(); SimpleString user(); boolean isDurable(); boolean isTemporary(); boolean isAutoCreated(); boolean isPurgeOnNoConsumers(); int maxConsumers(); boolean isExclusive(); boolean isLastValue(); SimpleString lastValueKey(); boolean isNonDestructive(); RoutingType deliveryMode(); int consumersBeforeDispatch(); long delayBeforeDispatch(); boolean isGroupRebalance(); int getGroupBuckets(); SimpleString getGroupFirstKey(); boolean isConfigurationManaged(); boolean isAutoDelete(); long getAutoDeleteDelay(); long getAutoDeleteMessageCount(); long getRingSize(); PagingStore getPagingStore(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test(expected = IllegalStateException.class) public void cannotAllowNullAddress() { QueueConfig.builderWith(1L, new SimpleString("queue_name"), null); }
@Test(expected = IllegalStateException.class) public void cannotAllowNullNameWithoutAddress() { QueueConfig.builderWith(1L, null); }
@Test(expected = IllegalStateException.class) public void cannotAllowNullNameWithAddress() { QueueConfig.builderWith(1L, null, new SimpleString("queue_address")); }