    @Test
    @DisplayName("Creates an empty database")
    public void testCreate(@Mock Storage storage, @Mock FileStructure fileStructure, @Mock RecordStructure recordStructure) throws Exception {


        DefaultDatabaseAccessor accessor = new DefaultDatabaseAccessor("x.y", "myDb", storage, extraAttributes("custom", "myValue"), fileStructure, recordStructure);

        accessor.createDatabase();

        ArgumentCaptor<Map<String, String>> actualAtts = ArgumentCaptor.forClass(Map.class);

        verify(fileStructure).initializeStorage(eq(storage), actualAtts.capture(), eq("version"));

        assertThat(actualAtts.getValue()).containsOnly(
                entry("version", "x.y"),
                entry("name", "myDb"),
                entry("charset", Charset.defaultCharset().name()),
                entry("custom", "myValue")
        );
    }