@Test
public void testInvalidVersion() {

    expectedEx.expect(IllegalArgumentException.class);
    expectedEx.expectMessage("version verification failed");
    final URL url = PowerMock.createMock(URL.class);
    PowerMock.mockStatic(JSONUtils.class);
    PowerMock.mockStatic(NetworkUtils.class);
    String manifest = null;
    try {
        manifest = WorkerTestUtils.readFile(INVALID_VERSION_FILE);
    } catch (final IOException e) {
        fail("Could not read file: " + INVALID_VERSION_FILE);
    }
    try {
        NetworkUtils.getDataFromURL(url, null, ImageIngester.DEFAULT_CONNECT_TIMEOUT);
        PowerMock.expectLastCall().andReturn(manifest.getBytes());
        PowerMock.replayAll();
        DynamoDBMissionWorker.getSolJSON(url, ImageIngester.DEFAULT_CONNECT_TIMEOUT);
    } catch (final IOException e) {
        fail(e.getMessage());
    }
    fail("Version is incorrect");
}