@Test
void matchesShouldReturnTrueIfTypeAndProviderPatternsAreMatching() {

    // Arrange
    ResourceCreatorConfiguration resourceCreatorConfiguration = createMatcherTestConfiguration("provider_.*", "type_.*");
    CompiledResourceCreatorConfiguration compiledResourceCreatorConfiguration = new CompiledResourceCreatorConfiguration(resourceCreatorConfiguration);
    TerraformResource resource = mock(TerraformResource.class);
    when(resource.getProviderName()).thenReturn("provider_matching");
    when(resource.getType()).thenReturn("type_matching");
    // Act
    boolean matches = compiledResourceCreatorConfiguration.matches(resource);
    // Assert
    assertThat(matches).isTrue();
    verify(resource, times(1)).getType();
    verify(resource, times(1)).getProviderName();
}