@Test(expected=InternalServerErrorException.class)
public void testUpdateJobGetSQLException() throws Exception {

    // Create an ukelonn service with a mock database that throws exception
    UkelonnServiceProvider ukelonn = new UkelonnServiceProvider();
    DataSource datasource = mock(DataSource.class);
    Connection connection = mock(Connection.class);
    when(datasource.getConnection()).thenReturn(connection);
    PreparedStatement statement = mock(PreparedStatement.class);
    when(connection.prepareStatement(anyString())).thenReturn(statement);
    doThrow(SQLException.class).when(statement).setInt(anyInt(), anyInt());
    ukelonn.setDataSource(datasource);
    // Create a resource and inject OSGi services
    JobResource resource = new JobResource();
    resource.ukelonn = ukelonn;
    MockLogService logservice = new MockLogService();
    resource.logservice = logservice;
    resource.doUpdateJob(new UpdatedTransaction());
    fail("Should never get here");
}