### Question:
QueueConfig extends SerializableBase { public boolean updateVisibilityTimeout(long newTimeOut) { if (visibilityTimeout != newTimeOut) { this.visibilityTimeout = newTimeOut; return true; } return false; }  void updateTime(); boolean updateRetryCount(int newRetryCount); boolean addDeadLetterQueue(DeadLetterQueue deadLetterQueue); boolean updateVisibilityTimeout(long newTimeOut); boolean updateConcurrency(MinMax<Integer> concurrency); boolean updatePriorityGroup(String priorityGroup); boolean updatePriority(Map<String, Integer> newPriority); @JsonIgnore boolean isDeadLetterQueue(String name); @JsonIgnore boolean hasDeadLetterQueue();  }### Answer:
@Test public void testVisibilityTimeout() { QueueConfig queueConfig = new QueueConfig(); assertTrue(queueConfig.updateVisibilityTimeout(100L)); assertEquals(100L, queueConfig.getVisibilityTimeout()); assertFalse(queueConfig.updateVisibilityTimeout(100L)); assertEquals(100L, queueConfig.getVisibilityTimeout()); }
@Test public void updateVisibilityTimeout() { QueueConfig queueConfig = TestUtils.createQueueConfig("test"); assertTrue(queueConfig.updateVisibilityTimeout(1000L)); assertEquals(1000L, queueConfig.getVisibilityTimeout()); assertFalse(queueConfig.updateVisibilityTimeout(1000L)); }