@Test public void getPrimaryKeyValue() throws Exception { final int id = 55; when(mPaymentMethod.getId()).thenReturn(id); assertEquals(id, (int) mPaymentMethodPrimaryKey.getPrimaryKeyValue(mPaymentMethod)); }