@Test
void testGetResource() throws Exception {

    ByteArrayResource resource = new ByteArrayResource("mylocation", new byte[0]);
    assertNotNull(resource.getResource("mylocation"));
    assertNull(resource.getResource("notmylocation"));
    assertTrue(resource.getResource("mylocation").openStream() instanceof ByteArrayInputStream);
}