### Question:
TimeoutConfiguration { @PostConstruct public void init() throws IOException { Properties prop = SearchUtils.loadProperties("/search_timeouts.properties"); stats = Integer.parseInt(prop.getProperty("stats", "2")); search = Integer.parseInt(prop.getProperty("search", "10")); ping = Integer.parseInt(prop.getProperty("ping", "10")); documentDetail = Integer.parseInt(prop.getProperty("documentDetail", "10")); documentReferencesCount = Integer.parseInt(prop.getProperty("documentReferencesCount", "10")); documentReferencesSearch = Integer.parseInt(prop.getProperty("documentReferencesSearch", "10")); subjectPatternCount = Integer.parseInt(prop.getProperty("subjectPatternCount", "10")); subjectPatternSearch = Integer.parseInt(prop.getProperty("subjectPatternSearch", "10")); }  @PostConstruct void init(); int stats(); int search(); int ping(); int documentDetail(); int documentReferencesCount(); int documentReferencesSearch(); int subjectPatternCount(); int subjectPatternSearch();  }### Answer:
@Test public void init() throws IOException { TimeoutConfiguration tested = new TimeoutConfiguration(); Assert.assertEquals(0, tested.stats()); Assert.assertEquals(0, tested.search()); Assert.assertEquals(0, tested.ping()); Assert.assertEquals(0, tested.documentDetail()); Assert.assertEquals(0, tested.documentReferencesCount()); Assert.assertEquals(0, tested.documentReferencesSearch()); Assert.assertEquals(0, tested.subjectPatternCount()); Assert.assertEquals(0, tested.subjectPatternSearch()); tested.init(); Assert.assertEquals(2, tested.stats()); Assert.assertEquals(3, tested.search()); Assert.assertEquals(4, tested.ping()); Assert.assertEquals(5, tested.documentDetail()); Assert.assertEquals(6, tested.documentReferencesCount()); Assert.assertEquals(7, tested.documentReferencesSearch()); Assert.assertEquals(8, tested.subjectPatternCount()); Assert.assertEquals(9, tested.subjectPatternSearch()); }