AutoPollSuggestion { public long intervalMills() { return intervalMills; } AutoPollSuggestion(long interval, TimeUnit timeUnit); private  AutoPollSuggestion(long intervalMills); long intervalMills(); static final AutoPollSuggestion NEVEL_AUTO_POLL; static final AutoPollSuggestion POLL_WHEN_UPDATED; }
@Test public void testAutoPollSuggest() { AutoPollSuggestion autoPollSuggestion = new AutoPollSuggestion(3, TimeUnit.SECONDS); Assert.assertEquals(3000, autoPollSuggestion.intervalMills()); }