@Test
public void shouldCreateLoggerCorrectly() {

  // Given:
  when(innerFactory.apply("prefix.foo")).thenReturn(innerLogger);
  // When:
  final StructuredLogger logger = loggerFactory.getLogger("foo");
  logger.info(mock(SchemaAndValue.class));
  // Then:
  verify(innerFactory, times(1)).apply("prefix.foo");
  verify(innerLogger).info(any(String.class), any(SerializableSchemaAndValue.class));
}