@Override
    public String toString() {
        return "ResourceConfig{" +
                "url=" + url +
                ", id='" + id + '\'' +
                ", resourceType=" + resourceType +
                '}';
    }
@Test
    public void when_attachNonexistentFileWithPathAndId_then_throwsException() {
        // Given
        String id = "exist";
        String path = Paths.get("/i/do/not/" + id).toString();

        // Then
        expectedException.expect(JetException.class);
        expectedException.expectMessage("Not an existing, readable file: " + path);

        // When
        config.attachFile(path, id);
    }