### Question:
ResourceLoader { public synchronized void await() { if (!started.get()) { throw new LionEngineException(ERROR_NOT_STARTED); } try { thread.join(); } catch (final InterruptedException exception) { Thread.currentThread().interrupt(); throw new LionEngineException(exception, ERROR_SKIPPED); } finally { done.set(true); } } ResourceLoader(); synchronized void add(T key, Resource resource); synchronized void start(); synchronized void await(); synchronized Map<T, Resource> get(); boolean isFinished();  }### Answer:
@Test void testNotStartedAwait() { final ResourceLoader<Type> resourceLoader = new ResourceLoader<>(); assertThrows(() -> resourceLoader.await(), ResourceLoader.ERROR_NOT_STARTED); }