### Question:
DefaultHazelcastBucketManagerFactory implements HazelcastBucketManagerFactory { @Override public <T> Queue<T> getQueue(String bucketName, Class<T> clazz) { requireNonNull(bucketName, "bucketName is required"); requireNonNull(clazz, "clazz is required"); return hazelcastInstance.getQueue(bucketName); } DefaultHazelcastBucketManagerFactory(HazelcastInstance hazelcastInstance); @Override HazelcastBucketManager getBucketManager(String bucketName); @Override List<T> getList(String bucketName, Class<T> clazz); @Override Set<T> getSet(String bucketName, Class<T> clazz); @Override Queue<T> getQueue(String bucketName, Class<T> clazz); @Override Map<K, V> getMap(String bucketName, Class<K> keyValue, Class<V> valueValue); @Override void close(); @Override List<T> getList(String bucketName); @Override Set<T> getSet(String bucketName); @Override Queue<T> getQueue(String bucketName); @Override Map<K, V> getMap(String bucketName);  }### Answer:
@Test public void shouldReturnQueue() { Queue<String> queue = managerFactory.getQueue("queue_sample", String.class); assertNotNull(queue); }
@Test public void shouldReturnErrorWhenNullParameterQueue() { assertThrows(NullPointerException.class, () -> managerFactory.getQueue(null, String.class)); }
@Test public void shouldReturnQueueHazelcast() { Queue<String> queue = managerFactory.getQueue("queue_sample"); assertNotNull(queue); }
@Test public void shouldReturnErrorWhenNullParameterQueueHazelcast() { assertThrows(NullPointerException.class, () -> managerFactory.getQueue(null)); }