CoffeeHouse extends AbstractLoggingActor { public static Props props(){ return Props.create(CoffeeHouse.class, CoffeeHouse::new); } CoffeeHouse(); static Props props();  }
@Test public void shouldLogMessageWhenCreated() { new JavaTestKit(system) {{ interceptDebugLogMessage(this, ".*[Oo]pen.*", 1, () -> system.actorOf(CoffeeHouse.props())); }}; }