### Question:
CucumberPerf { public Duration convertRuntime(String time) { Duration d = Duration.between(LocalTime.MIN, LocalTime.parse(time)); return d; } CucumberPerf(Class<?> clazz);  CucumberPerf(Class<?> clazz, PerfRuntimeOptions options);  CucumberPerf(PerfRuntimeOptions options);  CucumberPerf(String[] args); void runThreads(); void printResult(); Duration convertRuntime(String time); LocalDateTime getEnd(LocalDateTime start, String time); long getMaxRan(); long getTotalRanCount(); LocalDateTime getStart(); LocalDateTime getEnd(); String getRunTime(); int getMaxThreads(); Plugins getPlugins();  }### Answer:
@Test public void testConvertRuntime() { CucumberPerf cp = new CucumberPerf(options1.class); Duration rt = cp.convertRuntime("00:00:30"); assertEquals(rt.toString(),"PT30S"); }