@Test
void bytes() {

    assertThatThrownBy(() -> ClasspathResources.bytes("classpath-resource-test/not-existed-resource.properties"))
            .isInstanceOf(Error.class)
            .hasMessageContaining("can not load resource");
}