@Test
public void getResourceStateTest() {

    Mockito.doReturn("Enabled").when(jdbcTemplate).queryForObject(Mockito.eq(sqlGetResourceState), Mockito.eq(String.class), Mockito.eq(0l));
    ResourceState result = spy.getResourceState(0l);
    Mockito.verify(jdbcTemplate).queryForObject(Mockito.eq(sqlGetResourceState), Mockito.eq(String.class), Mockito.eq(0l));
    Assert.assertEquals(ResourceState.Enabled, result);
}