@Test
public void testReadTemplateShouldReturnWithResourceWhenStubResourceHolderContainsTemplate() {

    //GIVEN
    given(stubResourceHolder.getTemplates()).willReturn(templatesMap);
    given(templatesMap.containsKey(RESOURCE_NAME)).willReturn(true);
    given(templatesMap.get(RESOURCE_NAME)).willReturn(RESOURCE_NAME.getBytes());
    //WHEN
    byte[] actual = underTest.readTemplate(RESOURCE_NAME);
    //THEN
    assertEquals(actual, RESOURCE_NAME.getBytes());
}