@Test
public void testUpgradeWithInvalidFile()
{

    Calendar cal = Calendar.getInstance();
    String timeInMillis = Long.toString( cal.getTimeInMillis() );
    upgradeSpec.setId( "hmsToken" );
    upgradeSpec.setFileName( timeInMillis );
    Response response = upgrade( upgradeSpec );
    assertNotNull( response );
    assertTrue( response.getStatus() == Status.FORBIDDEN.getStatusCode() );
    UpgradeStatus status = (UpgradeStatus) response.getEntity();
    assertNotNull( status );
    message = String.format( "Upgrade binary '%s' not found at '%s'.", upgradeSpec.getFileName(),
                             UpgradeUtil.getUpgradeDir( "hmsToken" ) );
    assertEquals( message, status.getMoreInfo() );
}