@Test
public void shouldReturnWorkspaceNameAsSchemaName() {

    for (int i = 0; i != columnNames.length; ++i) {
        assertThat(metadata.getSchemaName(i), is(info.getWorkspaceName()));
    }
    when(info.getWorkspaceName()).thenReturn(null);
    for (int i = 0; i != columnNames.length; ++i) {
        assertThat(metadata.getSchemaName(i), is(info.getWorkspaceName()));
    }
}